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, posFields inherited from interface com.sun.star.io.XInputStream
UNOTYPEINFOFields inherited from interface com.sun.star.io.XSeekable
UNOTYPEINFO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlonglongintreadBytes(byte[][] buffer, int bufferSize) intreadSomeBytes(byte[][] buffer, int bufferSize) voidseek(long position) voidskipBytes(int skipLength) Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferToMethods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readBytesin 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:
readSomeBytesin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
skipBytes
public void skipBytes(int skipLength) - Specified by:
skipBytesin interfacecom.sun.star.io.XInputStream
-
closeInput
public void closeInput() throws com.sun.star.io.IOException- Specified by:
closeInputin interfacecom.sun.star.io.XInputStream- Throws:
com.sun.star.io.IOException
-
getLength
public long getLength()- Specified by:
getLengthin interfacecom.sun.star.io.XSeekable
-
getPosition
public long getPosition()- Specified by:
getPositionin interfacecom.sun.star.io.XSeekable
-
seek
- Specified by:
seekin interfacecom.sun.star.io.XSeekable- Throws:
IllegalArgumentException
-