Class FileByteChunkProvider
java.lang.Object
com.hierynomus.smbj.io.ByteChunkProvider
com.hierynomus.smbj.io.FileByteChunkProvider
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsFields inherited from class ByteChunkProvider
CHUNK_SIZE, chunkSize, offset -
Constructor Summary
ConstructorsConstructorDescriptionFileByteChunkProvider(File file) FileByteChunkProvider(File file, long offset) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()private voidensureSkipped(FileInputStream fis, long offset) protected intgetChunk(byte[] chunk) booleanvoidprepareWrite(int maxBytesToPrepare) Methods inherited from class ByteChunkProvider
getChunkSize, getLastWriteSize, getOffset, writeChunk, writeChunk, writeChunks
-
Field Details
-
file
-
underlyingProvider
-
-
Constructor Details
-
FileByteChunkProvider
- Throws:
IOException
-
FileByteChunkProvider
- Throws:
IOException
-
-
Method Details
-
ensureSkipped
- Throws:
IOException
-
prepareWrite
public void prepareWrite(int maxBytesToPrepare) - Specified by:
prepareWritein classByteChunkProvider
-
getChunk
- Specified by:
getChunkin classByteChunkProvider- Throws:
IOException
-
bytesLeft
public int bytesLeft()- Specified by:
bytesLeftin classByteChunkProvider
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classByteChunkProvider
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteChunkProvider- Throws:
IOException
-