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