org.apache.jena.atlas.web
Class TypedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.jena.atlas.web.TypedInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
TypedInputStreamHttp

public class TypedInputStream
extends FilterInputStream


Constructor Summary
TypedInputStream(InputStream in)
           
TypedInputStream(InputStream in, ContentType ct)
           
TypedInputStream(InputStream in, ContentType ct, String baseURI)
           
TypedInputStream(InputStream in, String contentType)
           
TypedInputStream(InputStream in, String mediaType, String charset)
           
TypedInputStream(InputStream in, String mediaType, String charset, String baseURI)
           
 
Method Summary
 String getBaseURI()
           
 String getCharset()
           
 String getContentType()
           
 ContentType getMediaType()
           
 String getMimeType()
          Deprecated. Use getContentType()
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedInputStream

public TypedInputStream(InputStream in)

TypedInputStream

public TypedInputStream(InputStream in,
                        String contentType)

TypedInputStream

public TypedInputStream(InputStream in,
                        String mediaType,
                        String charset)

TypedInputStream

public TypedInputStream(InputStream in,
                        String mediaType,
                        String charset,
                        String baseURI)

TypedInputStream

public TypedInputStream(InputStream in,
                        ContentType ct)

TypedInputStream

public TypedInputStream(InputStream in,
                        ContentType ct,
                        String baseURI)
Method Detail

getMimeType

@Deprecated
public String getMimeType()
Deprecated. Use getContentType()


getContentType

public String getContentType()

getCharset

public String getCharset()

getMediaType

public ContentType getMediaType()

getBaseURI

public String getBaseURI()


Licenced under the Apache License, Version 2.0