Class OfficeInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
io.jmix.reports.yarg.formatters.impl.doc.OfficeInputStream
- All Implemented Interfaces:
com.sun.star.io.XInputStream
,com.sun.star.io.XSeekable
,com.sun.star.uno.XInterface
,Closeable
,AutoCloseable
public class OfficeInputStream
extends ByteArrayInputStream
implements com.sun.star.io.XInputStream, com.sun.star.io.XSeekable
Implementation for XInputStream
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
Fields inherited from interface com.sun.star.io.XInputStream
UNOTYPEINFO
Fields inherited from interface com.sun.star.io.XSeekable
UNOTYPEINFO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
long
long
int
readBytes
(byte[][] buffer, int bufferSize) int
readSomeBytes
(byte[][] buffer, int bufferSize) void
seek
(long position) void
skipBytes
(int skipLength) Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.star.io.XInputStream
available
-
Constructor Details
-
OfficeInputStream
public OfficeInputStream(byte[] buf)
-
-
Method Details
-
readBytes
public int readBytes(byte[][] buffer, int bufferSize) throws com.sun.star.io.IOException - Specified by:
readBytes
in interfacecom.sun.star.io.XInputStream
- Throws:
com.sun.star.io.IOException
-
readSomeBytes
public int readSomeBytes(byte[][] buffer, int bufferSize) throws com.sun.star.io.IOException - Specified by:
readSomeBytes
in interfacecom.sun.star.io.XInputStream
- Throws:
com.sun.star.io.IOException
-
skipBytes
public void skipBytes(int skipLength) - Specified by:
skipBytes
in interfacecom.sun.star.io.XInputStream
-
closeInput
public void closeInput() throws com.sun.star.io.IOException- Specified by:
closeInput
in interfacecom.sun.star.io.XInputStream
- Throws:
com.sun.star.io.IOException
-
getLength
public long getLength()- Specified by:
getLength
in interfacecom.sun.star.io.XSeekable
-
getPosition
public long getPosition()- Specified by:
getPosition
in interfacecom.sun.star.io.XSeekable
-
seek
- Specified by:
seek
in interfacecom.sun.star.io.XSeekable
- Throws:
IllegalArgumentException
-