Package com.sun.star.lib.uno.adapter
Class XOutputStreamToByteArrayAdapter
java.lang.Object
com.sun.star.lib.uno.helper.WeakBase
com.sun.star.lib.uno.helper.ComponentBase
com.sun.star.lib.uno.adapter.XOutputStreamToByteArrayAdapter
- All Implemented Interfaces:
com.sun.star.io.XOutputStream
,com.sun.star.lang.XComponent
,com.sun.star.lang.XTypeProvider
,com.sun.star.uno.XInterface
,com.sun.star.uno.XWeak
public final class XOutputStreamToByteArrayAdapter
extends ComponentBase
implements com.sun.star.io.XOutputStream
-
Field Summary
Fields inherited from class com.sun.star.lib.uno.helper.ComponentBase
bDisposed, bInDispose, listenerContainer
Fields inherited from interface com.sun.star.lang.XComponent
UNOTYPEINFO
Fields inherited from interface com.sun.star.io.XOutputStream
UNOTYPEINFO
Fields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO
Fields inherited from interface com.sun.star.uno.XWeak
UNOTYPEINFO
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of ByteArrayXOutputStreamXOutputStreamToByteArrayAdapter
(byte[] aBuffer) -
Method Summary
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
-
Constructor Details
-
XOutputStreamToByteArrayAdapter
public XOutputStreamToByteArrayAdapter()Creates a new instance of ByteArrayXOutputStream -
XOutputStreamToByteArrayAdapter
public XOutputStreamToByteArrayAdapter(byte[] aBuffer)
-
-
Method Details
-
getBuffer
public byte[] getBuffer() -
closeOutput
public void closeOutput() throws com.sun.star.io.NotConnectedException, com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException- Specified by:
closeOutput
in interfacecom.sun.star.io.XOutputStream
- Throws:
com.sun.star.io.NotConnectedException
com.sun.star.io.BufferSizeExceededException
com.sun.star.io.IOException
-
flush
public void flush() throws com.sun.star.io.NotConnectedException, com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException- Specified by:
flush
in interfacecom.sun.star.io.XOutputStream
- Throws:
com.sun.star.io.NotConnectedException
com.sun.star.io.BufferSizeExceededException
com.sun.star.io.IOException
-
writeBytes
public void writeBytes(byte[] values) throws com.sun.star.io.NotConnectedException, com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException - Specified by:
writeBytes
in interfacecom.sun.star.io.XOutputStream
- Throws:
com.sun.star.io.NotConnectedException
com.sun.star.io.BufferSizeExceededException
com.sun.star.io.IOException
-