railo.commons.io.res.type.cache
Class CacheResourceCore

java.lang.Object
  extended by railo.commons.io.res.type.cache.CacheResourceCore
All Implemented Interfaces:
Serializable

public final class CacheResourceCore
extends Object
implements Serializable

Core of a Ram Resource, holds the concrete data for a existing resource

See Also:
Serialized Form

Field Summary
static int TYPE_DIRECTORY
          Directory Resource
static int TYPE_FILE
          Directory Resource
 
Constructor Summary
CacheResourceCore(int type, String path, String name)
          Konstruktor
 
Method Summary
 int getAttributes()
           
 byte[] getData()
          Gibt den Feldnamen data zurueck.
 long getLastModified()
          Gibt den Feldnamen lastModified zurueck.
 int getMode()
           
 String getName()
          Gibt den Feldnamen name zurueck.
 String getPath()
           
 int getType()
          Gibt den Feldnamen type zurueck.
 void remove()
           
 void setAttributes(int attributes)
           
 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

TYPE_DIRECTORY

public static final int TYPE_DIRECTORY
Directory Resource

See Also:
Constant Field Values

TYPE_FILE

public static final int TYPE_FILE
Directory Resource

See Also:
Constant Field Values
Constructor Detail

CacheResourceCore

public CacheResourceCore(int type,
                         String path,
                         String name)
Konstruktor

Parameters:
parent -
type -
name -
caseSensitive -
Method Detail

getLastModified

public long getLastModified()
Gibt den Feldnamen lastModified zurueck.

Returns:
lastModified

setLastModified

public void setLastModified(long lastModified)
Setzt den Feldnamen lastModified.

Parameters:
lastModified - lastModified

getData

public byte[] getData()
Gibt den Feldnamen data zurueck.

Returns:
data

setData

public void setData(byte[] data,
                    boolean append)
Setzt den Feldnamen data.

Parameters:
data - data
append -

getName

public String getName()
Gibt den Feldnamen name zurueck.

Returns:
name

setName

public void setName(String name)
Setzt den Feldnamen name.

Parameters:
name - name

getPath

public String getPath()
Returns:
the path

getType

public int getType()
Gibt den Feldnamen type zurueck.

Returns:
type

setType

public void setType(int type)
Setzt den Feldnamen type.

Parameters:
type - type

getMode

public int getMode()
Returns:
the mode

setMode

public void setMode(int mode)
Parameters:
mode - the mode to set

getAttributes

public int getAttributes()

setAttributes

public void setAttributes(int attributes)

remove

public void remove()


Copyright © 2012 Railo