public class ChunkInputStream extends InputStream
Constructor and Description |
---|
ChunkInputStream(String chunkId,
InputStream inputStream,
long chunkSize,
boolean preserveMD5) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getChunkId() |
long |
getChunkSize() |
String |
getMD5() |
String |
getMimetype() |
boolean |
md5Preserved() |
long |
numBytesRead() |
int |
read()
This method reads up to chunkSize number of bytes from the stream.
|
available, mark, markSupported, read, read, reset, skip
public ChunkInputStream(String chunkId, InputStream inputStream, long chunkSize, boolean preserveMD5)
public int read() throws IOException
read
in class InputStream
IOException
- on errorpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public String getMD5()
public long numBytesRead()
public String getChunkId()
public String getMimetype()
public long getChunkSize()
public boolean md5Preserved()
Copyright © 2009–2014 DuraSpace. All rights reserved.