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
  • 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 interface com.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 interface com.sun.star.io.XInputStream
      Throws:
      com.sun.star.io.IOException
    • skipBytes

      public void skipBytes(int skipLength)
      Specified by:
      skipBytes in interface com.sun.star.io.XInputStream
    • closeInput

      public void closeInput() throws com.sun.star.io.IOException
      Specified by:
      closeInput in interface com.sun.star.io.XInputStream
      Throws:
      com.sun.star.io.IOException
    • getLength

      public long getLength()
      Specified by:
      getLength in interface com.sun.star.io.XSeekable
    • getPosition

      public long getPosition()
      Specified by:
      getPosition in interface com.sun.star.io.XSeekable
    • seek

      public void seek(long position) throws IllegalArgumentException
      Specified by:
      seek in interface com.sun.star.io.XSeekable
      Throws:
      IllegalArgumentException