|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinarySource
Represents a source of binary data. Implementations of this
class are used to represent the Binary data type instead of just
a plain stream. This allows hiding of whether the data is kept
in-memory (e.g. MemoryBinarySource
) or on disk FileBinarySource
.
Different Providers can then implement their own ways of getting the stream
out of the repository.
Method Summary | |
---|---|
BinarySource |
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. |
Method Detail |
---|
java.io.InputStream getStream() throws java.io.IOException
java.io.IOException
- If the stream could not be opened.long getLength() throws java.io.IOException
java.io.IOException
- If the length cannot be determined.BinarySource clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |