org.apache.commons.vfs.provider.ram
Class RamFileData

java.lang.Object
  extended by org.apache.commons.vfs.provider.ram.RamFileData
All Implemented Interfaces:
java.io.Serializable

 class RamFileData
extends java.lang.Object
implements java.io.Serializable

RAM File Object Data


Field Summary
private  byte[] buffer
          Bytes
private  java.util.Collection children
          Children
private  long lastModified
          Last modified time
private  FileName name
          File Name
private  FileType type
          File Type
 
Constructor Summary
RamFileData(FileName name)
          Constructor
 
Method Summary
(package private)  void addChild(RamFileData data)
          Add a child
(package private)  void clear()
           
 boolean equals(java.lang.Object o)
           
(package private)  byte[] getBuffer()
           
(package private)  java.util.Collection getChildren()
           
(package private)  long getLastModified()
           
(package private)  FileName getName()
           
(package private)  FileType getType()
           
(package private)  boolean hasChildren(RamFileData data)
           
 int hashCode()
           
(package private)  void removeChild(RamFileData data)
          Remove a child
(package private)  void resize(int newSize)
          Resize the buffer
(package private)  void setBuffer(byte[] buffer)
           
(package private)  void setLastModified(long lastModified)
           
(package private)  void setType(FileType type)
           
(package private)  int size()
           
 java.lang.String toString()
           
(package private)  void updateLastModified()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private FileName name
File Name


type

private FileType type
File Type


buffer

private byte[] buffer
Bytes


lastModified

private long lastModified
Last modified time


children

private java.util.Collection children
Children

Constructor Detail

RamFileData

public RamFileData(FileName name)
Constructor

Method Detail

getBuffer

byte[] getBuffer()
Returns:
Returns the buffer.

setBuffer

void setBuffer(byte[] buffer)
Parameters:
buffer -

getLastModified

long getLastModified()
Returns:
Returns the lastModified.

setLastModified

void setLastModified(long lastModified)
Parameters:
lastModified - The lastModified to set.

getType

FileType getType()
Returns:
Returns the type.

setType

void setType(FileType type)
Parameters:
type - The type to set.

clear

void clear()

updateLastModified

void updateLastModified()

getName

FileName getName()
Returns:
Returns the name.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addChild

void addChild(RamFileData data)
        throws FileSystemException
Add a child

Parameters:
data -
Throws:
FileSystemException

removeChild

void removeChild(RamFileData data)
           throws FileSystemException
Remove a child

Parameters:
data -
Throws:
FileSystemException

getChildren

java.util.Collection getChildren()
Returns:
Returns the children.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

hasChildren

boolean hasChildren(RamFileData data)

size

int size()
Returns:
Returns the size of the buffer

resize

void resize(int newSize)
Resize the buffer

Parameters:
newSize -