net.jini.jeri.kerberos
Class KerberosUtil.ConnectionInputStream
java.lang.Object
java.io.InputStream
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
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
private byte[] buf
offset
private int offset
connection
private final KerberosUtil.Connection connection
KerberosUtil.ConnectionInputStream
KerberosUtil.ConnectionInputStream(KerberosUtil.Connection connection)
- Construct the input stream
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.