|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.value.BinaryImpl
public class BinaryImpl
BinaryImpl implements the Binary interface.
| Constructor Summary | |
|---|---|
BinaryImpl(byte[] buffer)
Creates a new BinaryImpl instance from a
byte[] array. |
|
BinaryImpl(InputStream in)
Creates a new BinaryImpl instance from an
InputStream. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
long |
getSize()
|
InputStream |
getStream()
|
int |
read(byte[] b,
long position)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryImpl(InputStream in)
throws IOException
BinaryImpl instance from an
InputStream. The contents of the stream is spooled
to a temporary file or to a byte buffer if its size is smaller than
MAX_BUFFER_SIZE.
in - stream to be represented as a BLOBFileValue instance
IOException - if an error occurs while reading from the stream or
writing to the temporary filepublic BinaryImpl(byte[] buffer)
BinaryImpl instance from a
byte[] array.
buffer - byte array to be represented as a BinaryImpl
instance| Method Detail |
|---|
public InputStream getStream()
throws RepositoryException
getStream in interface BinaryRepositoryException
public int read(byte[] b,
long position)
throws IOException,
RepositoryException
read in interface BinaryIOException
RepositoryException
public long getSize()
throws RepositoryException
getSize in interface BinaryRepositoryExceptionpublic void dispose()
dispose in interface Binary
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||