|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.star.lib.uno.helper.WeakBase
com.sun.star.lib.uno.helper.ComponentBase
ag.ion.bion.officelayer.internal.document.ByteArrayXInputStreamAdapter
public class ByteArrayXInputStreamAdapter
Wrapper in order to use a byte array as a XInputStream interface. This class bases on the OpenOffice.org Java API class ByteArrayToXInputStreamAdapter.
| Field Summary |
|---|
| Fields inherited from class com.sun.star.lib.uno.helper.ComponentBase |
|---|
bDisposed, bInDispose, listenerContainer |
| Fields inherited from class com.sun.star.lib.uno.helper.WeakBase |
|---|
_mapImplementationIds, _mapTypes |
| Fields inherited from interface com.sun.star.io.XInputStream |
|---|
UNOTYPEINFO |
| Fields inherited from interface com.sun.star.io.XSeekable |
|---|
UNOTYPEINFO |
| Fields inherited from interface com.sun.star.lang.XComponent |
|---|
UNOTYPEINFO |
| Fields inherited from interface com.sun.star.uno.XWeak |
|---|
UNOTYPEINFO |
| Fields inherited from interface com.sun.star.lang.XTypeProvider |
|---|
UNOTYPEINFO |
| Constructor Summary | |
|---|---|
ByteArrayXInputStreamAdapter(byte[] bytes)
Constructs new ByteArrayXInputStreamAdapter. |
|
ByteArrayXInputStreamAdapter(java.io.InputStream inputStream,
IOfficeProgressMonitor officeProgressMonitor)
Constructs new ByteArrayXInputStreamAdapter. |
|
ByteArrayXInputStreamAdapter(IOfficeProgressMonitor officeProgressMonitor,
byte[] bytes)
Constructs new ByteArrayXInputStreamAdapter. |
|
| Method Summary | |
|---|---|
int |
available()
Reads number of available bytes. |
void |
closeInput()
Closes the stream. |
long |
getLength()
Returns number of available bytes. |
long |
getPosition()
Returns current position. |
int |
readBytes(byte[][] buffer,
int size)
Reads bytes from the stream. |
int |
readSomeBytes(byte[][] buffer,
int size)
Reads bytes from the stream. |
void |
seek(long position)
Seeks position. |
void |
skipBytes(int size)
Skips bytes. |
| Methods inherited from class com.sun.star.lib.uno.helper.ComponentBase |
|---|
addEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListener |
| Methods inherited from class com.sun.star.lib.uno.helper.WeakBase |
|---|
getImplementationId, getTypes, queryAdapter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayXInputStreamAdapter(java.io.InputStream inputStream,
IOfficeProgressMonitor officeProgressMonitor)
throws java.io.IOException
inputStream - input stream to be usedofficeProgressMonitor - office progress monitor to be used
java.io.IOException - if the input stream can not be read
public ByteArrayXInputStreamAdapter(byte[] bytes)
throws java.lang.IllegalArgumentException
bytes - bytes to be used
java.lang.IllegalArgumentException - if the submitted bytes are not valid
public ByteArrayXInputStreamAdapter(IOfficeProgressMonitor officeProgressMonitor,
byte[] bytes)
throws java.lang.IllegalArgumentException
officeProgressMonitor - office progress monitor to be usedbytes - bytes to be used
java.lang.IllegalArgumentException - if the submitted bytes are not valid| Method Detail |
|---|
public int available()
throws com.sun.star.io.IOException
available in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOException - if any I/O related exception occurs
public void closeInput()
throws com.sun.star.io.IOException
closeInput in interface com.sun.star.io.XInputStreamcom.sun.star.io.IOException - if any I/O related exception occurs
public int readBytes(byte[][] buffer,
int size)
throws com.sun.star.io.BufferSizeExceededException,
com.sun.star.io.IOException
readBytes in interface com.sun.star.io.XInputStreambuffer - byte array to be usedsize - number of bytes to be fetched
com.sun.star.io.BufferSizeExceededException - if the buffer size was exceeded
com.sun.star.io.IOException - if any I/O related exception occurs
public int readSomeBytes(byte[][] buffer,
int size)
throws com.sun.star.io.BufferSizeExceededException,
com.sun.star.io.IOException
readSomeBytes in interface com.sun.star.io.XInputStreambuffer - byte array to be usedsize - number of bytes to be fetched
com.sun.star.io.BufferSizeExceededException - if the buffer size was exceeded
com.sun.star.io.IOException - if any I/O related exception occurs
public void skipBytes(int size)
throws com.sun.star.io.BufferSizeExceededException,
com.sun.star.io.IOException
skipBytes in interface com.sun.star.io.XInputStreamsize - number of bytes to be skipped
com.sun.star.io.BufferSizeExceededException - if the buffer size was exceeded
com.sun.star.io.IOException - if any I/O related exception occurs
public long getLength()
throws com.sun.star.io.IOException
getLength in interface com.sun.star.io.XSeekablecom.sun.star.io.IOException - if any I/O related exception occurs
public long getPosition()
throws com.sun.star.io.IOException
getPosition in interface com.sun.star.io.XSeekablecom.sun.star.io.IOException - if any I/O related exception occurs
public void seek(long position)
throws com.sun.star.lang.IllegalArgumentException,
com.sun.star.io.IOException
seek in interface com.sun.star.io.XSeekableposition - position to be used
com.sun.star.lang.IllegalArgumentException - if the seek position is invalid
com.sun.star.io.IOException - if any I/O related exception occurs
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||