|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.storage.types.MIMETypedStream
public class MIMETypedStream
Data structure for holding a MIME-typed stream.
| Field Summary | |
|---|---|
Property[] |
header
|
String |
MIMEType
|
| Constructor Summary | |
|---|---|
MIMETypedStream(String MIMEType,
InputStream stream,
Property[] header)
Constructs a MIMETypedStream. |
|
MIMETypedStream(String MIMEType,
InputStream stream,
Property[] header,
long size)
Constructs a MIMETypedStream. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String MIMEType
public Property[] header
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public InputStream getStream()
public void setStream(InputStream stream)
public void close()
public void finalize()
finalize in class Objectpublic long getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||