xjavadoc.filesystem

Interface AbstractFile

public interface AbstractFile

An interface that allows XJavadoc to read and write from any source/destination and not just files.

Author: Dmitri Colebatch

UNKNOWN: September 25, 2002

Method Summary
OutputStreamgetOutputStream()
Get an outputstream for the file.
StringgetPath()
ReadergetReader()
Obtain a reader for the file.
ReadergetReader(String enc)
WritergetWriter()
Obtain a writer for the file.
booleanisWriteable()
Determine if the file is writeable or not.
longlastModified()
Get the last modified timestamp of the file, or 0 if not available.

Method Detail

getOutputStream

public OutputStream getOutputStream()
Get an outputstream for the file.

Returns:

Throws: IOException

getPath

public String getPath()

getReader

public Reader getReader()
Obtain a reader for the file.

Returns:

Throws: IOException

getReader

public Reader getReader(String enc)

Parameters: encoding

Returns:

getWriter

public Writer getWriter()
Obtain a writer for the file.

Returns:

Throws: IOException

isWriteable

public boolean isWriteable()
Determine if the file is writeable or not.

Returns:

lastModified

public long lastModified()
Get the last modified timestamp of the file, or 0 if not available.

Returns: