public class MIMETypedStream extends Object
| Constructor and Description |
|---|
MIMETypedStream(String MIMEType,
InputStream stream,
Property[] header)
Constructs a MIMETypedStream.
|
MIMETypedStream(String MIMEType,
InputStream stream,
Property[] header,
long size)
Constructs a MIMETypedStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying stream if it's not already closed.
|
void |
finalize()
Ensures the underlying stream is closed at garbage-collection time
if the stream has not been retrieved.
|
long |
getSize() |
InputStream |
getStream()
Retrieves the underlying stream.
|
void |
setStream(InputStream stream) |
public MIMETypedStream(String MIMEType, InputStream stream, Property[] header)
MIMEType - The MIME type of the byte stream.stream - The byte stream.public MIMETypedStream(String MIMEType, InputStream stream, Property[] header, long size)
MIMEType - The MIME type of the byte stream.stream - The byte stream.public InputStream getStream()
public void setStream(InputStream stream)
public void close()
public void finalize()
public long getSize()
Copyright © 2013 DuraSpace. All Rights Reserved.