public class BitstreamStorageOutputStream extends DigestOutputStream
digestout| Constructor and Description |
|---|
BitstreamStorageOutputStream(org.dspace.core.Context context,
org.dspace.storage.rdbms.TableRow bitstream,
OutputStream proxy)
Constructs a new ProxyOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBitstreamID() |
String |
getBitstreamUuid() |
long |
getByteCount() |
void |
setAttribute(String name,
Object value) |
protected static void |
updateBitstream(org.dspace.storage.rdbms.TableRow bitstream,
Map attrs) |
void |
write(byte[] bts) |
void |
write(byte[] bts,
int st,
int end) |
void |
write(int idx) |
getMessageDigest, on, setMessageDigest, toStringflushpublic BitstreamStorageOutputStream(org.dspace.core.Context context,
org.dspace.storage.rdbms.TableRow bitstream,
OutputStream proxy)
throws NoSuchAlgorithmException
proxy - the OutputStream to delegate toNoSuchAlgorithmExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic int getBitstreamID()
public String getBitstreamUuid()
public void write(int idx)
throws IOException
write in class DigestOutputStreamIOExceptionpublic void write(byte[] bts)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] bts,
int st,
int end)
throws IOException
write in class DigestOutputStreamIOExceptionpublic long getByteCount()
protected static void updateBitstream(org.dspace.storage.rdbms.TableRow bitstream,
Map attrs)
throws IOException
IOExceptionCopyright © 2016 DuraSpace. All rights reserved.