org.apache.stanbol.enhancer.servicesapi
Interface Blob

All Known Implementing Classes:
InMemoryBlob

public interface Blob

represents a finite sequence of bytes associated to a mime-type


Method Summary
 long getContentLength()
          The size of the Content in bytes or a negative value if not known
 java.lang.String getMimeType()
          Getter for the mime-type of the content.
 java.util.Map<java.lang.String,java.lang.String> getParameter()
          Additional parameters parsed with the mime-type.
 java.io.InputStream getStream()
           
 

Method Detail

getMimeType

java.lang.String getMimeType()
Getter for the mime-type of the content. The returned string MUST only contain the "{type}/{sub-type}". No wildcards MUST BE used.

Returns:
the mime-type of his blog

getStream

java.io.InputStream getStream()
Returns:
a stream of the data of this blog

getParameter

java.util.Map<java.lang.String,java.lang.String> getParameter()
Additional parameters parsed with the mime-type. Typically the 'charset' used to encode text is parsed as a parameter.

Returns:
read only map with additional parameter for the used mime-type.

getContentLength

long getContentLength()
The size of the Content in bytes or a negative value if not known



Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.