xjavadoc.filesystem

Class ReaderFile

Implemented Interfaces:
AbstractFile

public class ReaderFile
extends java.lang.Object
implements AbstractFile

Field Summary

private Reader
file

Constructor Summary

ReaderFile(Reader file)

Method Summary

OutputStream
getOutputStream()
Get an outputstream for the file.
String
getPath()
Reader
getReader()
Obtain a reader for the file.
Reader
getReader(String enc)
Writer
getWriter()
Obtain a writer for the file.
boolean
isWriteable()
Determine if the file is writeable or not.
long
lastModified()
Get the last modified timestamp of the file, or 0 if not available.
String
toString()

Field Details

file

private Reader file

Constructor Details

ReaderFile

public ReaderFile(Reader file)

Method Details

getOutputStream

public OutputStream getOutputStream()
            throws FileNotFoundException
Get an outputstream for the file.
Specified by:
getOutputStream in interface AbstractFile
Returns:

getPath

public String getPath()
Specified by:
getPath in interface AbstractFile

getReader

public Reader getReader()
            throws IOException
Obtain a reader for the file.
Specified by:
getReader in interface AbstractFile
Returns:

getReader

public Reader getReader(String enc)
            throws UnsupportedEncodingException,
                   FileNotFoundException
Specified by:
getReader in interface AbstractFile
Parameters:
Returns:

getWriter

public Writer getWriter()
            throws IOException
Obtain a writer for the file.
Specified by:
getWriter in interface AbstractFile
Returns:

isWriteable

public boolean isWriteable()
Determine if the file is writeable or not.
Specified by:
isWriteable in interface AbstractFile
Returns:

lastModified

public long lastModified()
Get the last modified timestamp of the file, or 0 if not available.
Specified by:
lastModified in interface AbstractFile
Returns:

toString

public String toString()