net.jini.jeri.kerberos
Class KerberosUtil.ConnectionInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.jini.jeri.kerberos.KerberosUtil.ConnectionInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
KerberosUtil

static class KerberosUtil.ConnectionInputStream
extends InputStream

Input stream returned by getInputStream() of client or server connection


Field Summary
private  byte[] buf
           
private  KerberosUtil.Connection connection
           
private  int offset
           
 
Constructor Summary
KerberosUtil.ConnectionInputStream(KerberosUtil.Connection connection)
          Construct the input stream
 
Method Summary
 int available()
           
 void close()
          Close the DataInputStream of the enclosed connection
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

private byte[] buf

offset

private int offset

connection

private final KerberosUtil.Connection connection
Constructor Detail

KerberosUtil.ConnectionInputStream

KerberosUtil.ConnectionInputStream(KerberosUtil.Connection connection)
Construct the input stream

Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

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

available

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

close

public void close()
           throws IOException
Close the DataInputStream of the enclosed connection

Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.