LengthLimitingStream Class
- java.
lang. Object - OutputStream
- BlobOutputStream
- com.
microsoft. azure. storage. blob. LengthLimitingStream
- com.
public class LengthLimitingStream extends BlobOutputStream
Constructor Summary
Constructor | Description | |
---|---|---|
LengthLimitingStream(OutputStream wrappedStream, long start, Long length) |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | close() |
void | flush() |
void | write(byte[] data, int offset, int length) |
void | write(InputStream sourceStream, long writeLength) |
Inherited Members
Constructor Details
LengthLimitingStream
public LengthLimitingStream(OutputStream wrappedStream, long start, Long length)
Parameters:
wrappedStream
start
length
Method Details
close
public void close()
flush
public void flush()
write
public void write(byte[] data, int offset, int length)
Parameters:
data
offset
length
write
public void write(InputStream sourceStream, long writeLength)
Parameters:
sourceStream
writeLength