|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.priha.core.binary.FileBinarySource
public class FileBinarySource
Represents a BinarySource which is backed by a File on the Filesystem itself.
Constructor Summary | |
---|---|
FileBinarySource(java.io.File f)
|
Method Summary | |
---|---|
FileBinarySource |
clone()
Duplicates the BinarySource object. |
long |
getLength()
Return the length of the object represented by this BinarySource. |
java.io.InputStream |
getStream()
Returns the contents of the BinarySource as an InputStream. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileBinarySource(java.io.File f)
Method Detail |
---|
public long getLength()
BinarySource
getLength
in interface BinarySource
public java.io.InputStream getStream() throws java.io.FileNotFoundException
BinarySource
getStream
in interface BinarySource
java.io.FileNotFoundException
public FileBinarySource clone()
BinarySource
clone
in interface BinarySource
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |