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
-
Field Summary
FieldsFields inherited from class ByteChunkProvider
CHUNK_SIZE, chunkSize, offset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intgetChunk(byte[] chunk) booleanbooleanbooleanisBufferFull(int len) intmaxSize()voidprepareWrite(int maxBytesToPrepare) private voidreset()voidwriteByte(int b) voidwriteBytes(byte[] b, int off, int len) Methods inherited from class ByteChunkProvider
close, getChunkSize, getLastWriteSize, getOffset, writeChunk, writeChunk, writeChunks
-
Field Details
-
buf
-
-
Constructor Details
-
ByteArrayProvider
private ByteArrayProvider(int maxWriteSize, long offset)
-
-
Method Details
-
prepareWrite
public void prepareWrite(int maxBytesToPrepare) - Specified by:
prepareWritein classByteChunkProvider
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classByteChunkProvider
-
getChunk
protected int getChunk(byte[] chunk) - Specified by:
getChunkin classByteChunkProvider
-
bytesLeft
public int bytesLeft()- Specified by:
bytesLeftin classByteChunkProvider
-
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()
-