|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Binary
Replicates JCR 2.0's javax.jcr.Binary interface.
Method Summary | |
---|---|
void |
dispose()
Releases all resources associated with this Binary object and informs the repository that these resources may now be reclaimed. |
long |
getSize()
Returns the size of this Binary value in bytes. |
InputStream |
getStream()
Returns an InputStream representation of this value. |
int |
read(byte[] b,
long position)
Reads successive bytes from the specified position in this Binary into the passed byte array until either the byte array is full or the end of the Binary is encountered. |
Method Detail |
---|
InputStream getStream() throws RepositoryException
RepositoryException
- if an error occurs.int read(byte[] b, long position) throws IOException, RepositoryException
b
- - the buffer into which the data is read.position
- - the position in this Binary from which to start reading bytes.
IOException
- if an I/O error occurs.
NullPointerException
- if b is null.
IllegalArgumentException
- if offset is negative.
RepositoryException
- if another error occurs.long getSize() throws RepositoryException
RepositoryException
- if an error occurs.void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |