Class TypedOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class TypedOutputStream
    extends java.io.FilterOutputStream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String getCharset()  
      java.lang.String getMediaType()  
      • Methods inherited from class java.io.FilterOutputStream

        flush, write, write, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypedOutputStream

        public TypedOutputStream​(java.io.OutputStream out)
      • TypedOutputStream

        public TypedOutputStream​(java.io.OutputStream out,
                                 MediaType mediaType)
      • TypedOutputStream

        public TypedOutputStream​(java.io.OutputStream out,
                                 java.lang.String mediaType,
                                 java.lang.String charset)
    • Method Detail

      • getMediaType

        public java.lang.String getMediaType()
      • getCharset

        public java.lang.String getCharset()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterOutputStream