private class GridFTPClient.MlsxParserDataSink extends java.lang.Object implements DataSink
Modifier and Type | Field and Description |
---|---|
private byte[] |
buf |
private int |
pos |
private MlsxEntryWriter |
writer |
Constructor and Description |
---|
MlsxParserDataSink(MlsxEntryWriter w) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this data sink and releases any system
resources associated with this sink.
|
void |
write(Buffer buffer)
Writes the specified buffer to this data sink.
|
private MlsxEntryWriter writer
private byte[] buf
private int pos
public MlsxParserDataSink(MlsxEntryWriter w)
public void write(Buffer buffer) throws java.io.IOException
DataSink
buffer.getOffset()
might
return -1 if the transfer mode used does not support
data offsets, for example stream transfer mode.