|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.res.type.ram.RamResourceCore
public final class RamResourceCore
Core of a Ram Resource, holds the concrete data for a existing resource
Field Summary | |
---|---|
static int |
TYPE_DIRECTORY
Directory Resource |
static int |
TYPE_FILE
Directory Resource |
Constructor Summary | |
---|---|
RamResourceCore(RamResourceCore parent,
int type,
String name)
Konstruktor |
Method Summary | |
---|---|
void |
addChild(RamResourceCore child)
|
int |
getAttributes()
|
RamResourceCore |
getChild(String name,
boolean caseSensitive)
returns a child that match given name |
String[] |
getChildNames()
Gibt den Feldnamen children zur�ck. |
byte[] |
getData()
Gibt den Feldnamen data zur�ck. |
long |
getLastModified()
Gibt den Feldnamen lastModified zur�ck. |
int |
getMode()
|
String |
getName()
Gibt den Feldnamen name zur�ck. |
RamResourceCore |
getParent()
returns the parent if this core |
int |
getType()
Gibt den Feldnamen type zur�ck. |
void |
remove()
|
void |
removeChild(RamResourceCore core)
remove given child from this core |
void |
setAttributes(int attributes)
|
void |
setChildren(List children)
Setzt den Feldnamen children. |
void |
setData(byte[] data,
boolean append)
Setzt den Feldnamen data. |
void |
setLastModified(long lastModified)
Setzt den Feldnamen lastModified. |
void |
setMode(int mode)
|
void |
setName(String name)
Setzt den Feldnamen name. |
void |
setType(int type)
Setzt den Feldnamen type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_DIRECTORY
public static final int TYPE_FILE
Constructor Detail |
---|
public RamResourceCore(RamResourceCore parent, int type, String name)
parent
- type
- name
- caseSensitive
- Method Detail |
---|
public long getLastModified()
public void setLastModified(long lastModified)
lastModified
- lastModifiedpublic String[] getChildNames()
public void setChildren(List children)
children
- childrenpublic byte[] getData()
public void setData(byte[] data, boolean append)
data
- dataappend
- public String getName()
public void setName(String name)
name
- namepublic int getType()
public void setType(int type)
type
- typepublic void addChild(RamResourceCore child)
public RamResourceCore getChild(String name, boolean caseSensitive)
name
-
public RamResourceCore getParent()
public void removeChild(RamResourceCore core)
core
- public int getMode()
public void setMode(int mode)
mode
- the mode to setpublic int getAttributes()
public void setAttributes(int attributes)
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |