com.dynamide.util
Class FileTools.FileInfo

java.lang.Object
  extended by com.dynamide.util.FileTools.FileInfo
Enclosing class:
FileTools

public static class FileTools.FileInfo
extends java.lang.Object

A class that contains information about a file and its contents so that the class can be read fully, while preserving the File handle to pass back to the caller.


Constructor Summary
FileTools.FileInfo(boolean binary, boolean notFound, java.io.File file)
          This is for empty files or file not found.
FileTools.FileInfo(java.io.File file, byte[] bytes)
           
FileTools.FileInfo(java.io.File file, java.lang.String string)
           
 
Method Summary
 java.lang.String getAsString()
           
 byte[] getBytes()
           
 java.io.File getFile()
           
 boolean getFileNotFound()
           
 boolean getIsBinary()
           
 boolean getNotModified()
           
 boolean isEmpty()
           
protected  void setAsString(java.lang.String new_value)
           
protected  void setBytes(byte[] new_value)
           
protected  void setEmpty(boolean new_value)
           
protected  void setFile(java.io.File new_value)
           
 void setFileNotFound(boolean new_value)
           
protected  void setIsBinary(boolean new_value)
           
 void setNotModified(boolean new_value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTools.FileInfo

public FileTools.FileInfo(boolean binary,
                          boolean notFound,
                          java.io.File file)
This is for empty files or file not found.

Parameters:
binary - means the file was supposed to be binary.

FileTools.FileInfo

public FileTools.FileInfo(java.io.File file,
                          java.lang.String string)

FileTools.FileInfo

public FileTools.FileInfo(java.io.File file,
                          byte[] bytes)
Method Detail

toString

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

getNotModified

public boolean getNotModified()

setNotModified

public void setNotModified(boolean new_value)

getFileNotFound

public boolean getFileNotFound()

setFileNotFound

public void setFileNotFound(boolean new_value)

getIsBinary

public boolean getIsBinary()

setIsBinary

protected void setIsBinary(boolean new_value)

getFile

public java.io.File getFile()

setFile

protected void setFile(java.io.File new_value)

getAsString

public java.lang.String getAsString()

setAsString

protected void setAsString(java.lang.String new_value)

getBytes

public byte[] getBytes()

setBytes

protected void setBytes(byte[] new_value)

isEmpty

public boolean isEmpty()

setEmpty

protected void setEmpty(boolean new_value)


Copyright © 2001-2013 DYNAMIDE.COM. All Rights Reserved.