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.
|
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, reset, skippublic ChunkInputStream(String chunkId, InputStream inputStream, long chunkSize, boolean preserveMD5)
public int read()
throws IOException
read in class InputStreamIOException - on errorpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic String getMD5()
public long numBytesRead()
public String getChunkId()
public String getMimetype()
public long getChunkSize()
public boolean md5Preserved()
Copyright © 2009–2016 DuraSpace. All rights reserved.