Class FileOutputStream.ByteArrayProvider

java.lang.Object
com.hierynomus.smbj.io.ByteChunkProvider
com.hierynomus.smbj.share.FileOutputStream.ByteArrayProvider
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
FileOutputStream

private static class FileOutputStream.ByteArrayProvider extends ByteChunkProvider
  • Field Details

  • Constructor Details

    • ByteArrayProvider

      private ByteArrayProvider(int maxWriteSize, long offset)
  • Method Details

    • prepareWrite

      public void prepareWrite(int maxBytesToPrepare)
      Specified by:
      prepareWrite in class ByteChunkProvider
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in class ByteChunkProvider
    • getChunk

      protected int getChunk(byte[] chunk)
      Specified by:
      getChunk in class ByteChunkProvider
    • bytesLeft

      public int bytesLeft()
      Specified by:
      bytesLeft in class ByteChunkProvider
    • writeBytes

      public void writeBytes(byte[] b, int off, int len)
    • writeByte

      public void writeByte(int b)
    • isBufferFull

      public boolean isBufferFull()
    • isBufferFull

      public boolean isBufferFull(int len)
    • maxSize

      public int maxSize()
    • reset

      private void reset()