|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kano.joscar.FileWritable
Provides an efficient means of using the contents of a file as a
LiveWritable
.
LiveWritable
Constructor Summary | |
FileWritable(java.lang.String filename)
Creates a new Writable that will write the contents of the given file on command. |
Method Summary | |
java.lang.String |
getFilename()
Returns the file to be written by this object. |
void |
write(java.io.OutputStream out)
Writes the contents of this object's file ( getFile() ) to
the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileWritable(java.lang.String filename)
filename
- the file whose contents should be writtenMethod Detail |
public final java.lang.String getFilename()
public final void write(java.io.OutputStream out) throws java.io.IOException
getFile()
) to
the given stream.
write
in interface LiveWritable
out
- the stream to which to write the file's contents
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |