|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.mediaserver.MediaserverBlock.AbstractBlock
Nested Class Summary |
Nested classes inherited from class gzz.mediaserver.MediaserverBlock |
MediaserverBlock.AbstractBlock, MediaserverBlock.ByteArrayBlock, MediaserverBlock.FileBlock |
Constructor Summary | |
protected |
MediaserverBlock.AbstractBlock(Mediaserver.Id id,
java.lang.String poolName,
java.io.InputStream is)
|
Method Summary | |
byte[] |
getBytes()
|
java.lang.String |
getContentType()
Get the MIME Content-Type. |
java.util.Map |
getHeader()
Get the header as a Map, in the format returned by HeaderUtil.readHeader() . |
Mediaserver.Id |
getId()
Get the ID of this block. |
java.io.InputStream |
getInputStream()
Get an input stream for reading the body of this block. |
java.lang.String |
getPoolName()
Get the name of the pool that this block came from. |
byte[] |
getRaw()
|
java.lang.String |
getRawHeader()
Get the raw header as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gzz.mediaserver.MediaserverBlock |
getRawInputStream |
Constructor Detail |
protected MediaserverBlock.AbstractBlock(Mediaserver.Id id, java.lang.String poolName, java.io.InputStream is) throws java.io.IOException
is
- An unchecked input stream on the raw data,
for reading in the header. An id-checked input stream
would throw an exception when closed because we read
not the whole block, but just the header.Method Detail |
public Mediaserver.Id getId()
MediaserverBlock
getId
in interface MediaserverBlock
public java.lang.String getContentType()
MediaserverBlock
getContentType
in interface MediaserverBlock
public java.util.Map getHeader()
MediaserverBlock
HeaderUtil.readHeader()
.
getHeader
in interface MediaserverBlock
public java.lang.String getRawHeader() throws java.io.IOException
MediaserverBlock
getRawHeader
in interface MediaserverBlock
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
MediaserverBlock
getInputStream
in interface MediaserverBlock
java.io.IOException
public java.lang.String getPoolName()
MediaserverBlock
getPoolName
in interface MediaserverBlock
public byte[] getBytes() throws java.io.IOException
getBytes
in interface MediaserverBlock
java.io.IOException
public byte[] getRaw() throws java.io.IOException
getRaw
in interface MediaserverBlock
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |