public class SMB2Writer
extends java.lang.Object
| Constructor and Description |
|---|
SMB2Writer(Share share,
SMB2FileId fileId,
java.lang.String entryName) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOutputStream(ProgressListener listener,
long offset) |
int |
write(byte[] buffer,
long fileOffset)
Write the data in buffer to this file at position fileOffset.
|
int |
write(byte[] buffer,
long fileOffset,
int offset,
int length)
Write the data in buffer to this file at position fileOffset.
|
int |
write(ByteChunkProvider provider)
Write all available data from the byte chunk provider to this file.
|
int |
write(ByteChunkProvider provider,
ProgressListener progressListener)
Write all available data from the byte chunk provider to this file.
|
public SMB2Writer(Share share, SMB2FileId fileId, java.lang.String entryName)
public int write(byte[] buffer,
long fileOffset)
buffer - the data to writefileOffset - The offset, in bytes, into the file to which the data should be writtenpublic int write(byte[] buffer,
long fileOffset,
int offset,
int length)
buffer - the data to writefileOffset - The offset, in bytes, into the file to which the data should be writtenoffset - the start offset in the datalength - the number of bytes that are writtenpublic int write(ByteChunkProvider provider)
ByteChunkProvider.getOffset().provider - the byte chunk providerpublic int write(ByteChunkProvider provider, ProgressListener progressListener)
ByteChunkProvider.getOffset().provider - the byte chunk providerprogressListener - an optional callback that will be invoked when data has been written to the filepublic java.io.OutputStream getOutputStream(ProgressListener listener, long offset)