org.globus.gsi.gssapi.net
Class GssOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.globus.gsi.gssapi.net.GssOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Direct Known Subclasses:
GridFTPOutputStream, GSIGssOutputStream

public abstract class GssOutputStream
extends java.io.OutputStream


Field Summary
protected  boolean autoFlush
           
protected  byte[] buff
           
protected  org.ietf.jgss.GSSContext context
           
protected  int index
           
protected  java.io.OutputStream out
           
 
Constructor Summary
GssOutputStream(java.io.OutputStream out, org.ietf.jgss.GSSContext context)
           
GssOutputStream(java.io.OutputStream out, org.ietf.jgss.GSSContext context, int size)
           
 
Method Summary
 void close()
           
abstract  void flush()
           
 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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

close

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


Copyright © 2013. All Rights Reserved.