Class GssOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Direct Known Subclasses:
    GridFTPOutputStream, GSIGssOutputStream

    public abstract class GssOutputStream
    extends java.io.OutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean autoFlush  
      protected byte[] buff  
      protected org.ietf.jgss.GSSContext context  
      protected int index  
      private static org.apache.commons.logging.Log logger  
      protected java.io.OutputStream out  
    • Constructor Summary

      Constructors 
      Constructor Description
      GssOutputStream​(java.io.OutputStream out, org.ietf.jgss.GSSContext context)  
      GssOutputStream​(java.io.OutputStream out, org.ietf.jgss.GSSContext context, int size)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      abstract void flush()  
      private void flushData()  
      boolean getAutoFlush()  
      void setAutoFlush​(boolean autoFlush)  
      protected byte[] wrap()  
      void write​(byte[] data)  
      void write​(byte[] data, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static org.apache.commons.logging.Log logger
      • out

        protected java.io.OutputStream out
      • context

        protected org.ietf.jgss.GSSContext context
      • autoFlush

        protected boolean autoFlush
      • buff

        protected byte[] buff
      • index

        protected int index
    • Constructor Detail

      • GssOutputStream

        public GssOutputStream​(java.io.OutputStream out,
                               org.ietf.jgss.GSSContext context)
      • GssOutputStream

        public GssOutputStream​(java.io.OutputStream out,
                               org.ietf.jgss.GSSContext context,
                               int size)
    • Method Detail

      • setAutoFlush

        public void setAutoFlush​(boolean autoFlush)
      • getAutoFlush

        public boolean getAutoFlush()
      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] data)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] data,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • wrap

        protected byte[] wrap()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public abstract void flush()
                            throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • flushData

        private void flushData()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException