Java Globus API: Class GssInputStream

org.globus.gsi.gssapi.net
Class GssInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.globus.gsi.gssapi.net.GssInputStream
Direct Known Subclasses:
GridFTPInputStream, GSIGssInputStream, SaslInputStream

public abstract class GssInputStream
extends InputStream


Field Summary
protected  byte[] buff
           
protected  GSSContext context
           
protected  InputStream in
           
protected  int index
           
 
Constructor Summary
GssInputStream(InputStream in, GSSContext context)
           
 
Method Summary
 int available()
           
 void close()
           
protected  boolean hasData()
           
 int read()
           
 int read(byte[] data)
           
 int read(byte[] data, int off, int len)
           
protected abstract  void readMsg()
           
protected  byte[] unwrap(byte[] msg)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in

context

protected GSSContext context

buff

protected byte[] buff

index

protected int index
Constructor Detail

GssInputStream

public GssInputStream(InputStream in,
                      GSSContext context)
Method Detail

unwrap

protected byte[] unwrap(byte[] msg)
                 throws IOException

readMsg

protected abstract void readMsg()
                         throws IOException

read

public int read(byte[] data)
         throws IOException
Overrides:
read in class InputStream

read

public int read(byte[] data,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream

read

public int read()
         throws IOException
Overrides:
read in class InputStream

hasData

protected boolean hasData()
                   throws IOException

close

public void close()
           throws IOException
Overrides:
close in class InputStream

available

public int available()
              throws IOException
Overrides:
available in class InputStream