public final class TpeIn
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private int |
elevel |
private boolean |
gotEOF |
private java.io.InputStream |
in |
private tplle |
lle |
private int |
myMark |
private weblogic.socket.MuxableSocket |
myMuxableSocket |
private int |
myNeedToRead |
private int |
myOffset |
private int |
myProtocol |
private byte[] |
myTuxBuf |
private boolean |
opened |
private boolean |
parsedMetahdr |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the
buffer array b.
|
int |
read(byte[] b,
int off,
int len) |
private boolean |
readTuxedoMessage(boolean doBlock) |
void |
reset() |
int |
setElevel(int level) |
void |
setInputStream(java.io.InputStream i) |
void |
setLLE(tplle l) |
void |
setMuxableSocket(weblogic.socket.MuxableSocket sock) |
void |
setProtocol(int protocol) |
long |
skip(long n) |
private int elevel
private java.io.InputStream in
private tplle lle
private boolean opened
private byte[] myTuxBuf
private int myMark
private int myOffset
private int myNeedToRead
private int myProtocol
private boolean parsedMetahdr
private boolean gotEOF
private weblogic.socket.MuxableSocket myMuxableSocket
public TpeIn()
public TpeIn(java.io.InputStream io)
io
- the input stream this decryption stream going to read from.public int setElevel(int level)
level
- The desired decryption level.public void setLLE(tplle l)
l
- The tplle object which does the decryption.public void setInputStream(java.io.InputStream i)
i
- The input stream.public void setProtocol(int protocol)
public void setMuxableSocket(weblogic.socket.MuxableSocket sock)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
- - if an I/O error occurs.private boolean readTuxedoMessage(boolean doBlock) throws java.io.IOException
doBlock
- is true if this call should blockjava.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- - if an I/O occurs.This routine has a special trace level of JATMI_EX + 101. Furthermore, the trace level must be EXACTLY JATMI_EX + 101 in order to get trace from this function. That is because otherwise the trace of this function is way, way too much!
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
b
- - the buffer into which the data is read.java.io.IOException
- - if an I/O error occurs.public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- - the buffer into which the data is read.off
- - the start offset in array b at which the data is writtenlen
- - the maximum number of bytes to read.java.io.IOException
- - if an I/O error occurred.public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
- - the number of bytes to be skipped.java.io.IOException
- - if an I/O occurs.public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
- - if an I/O error occurs.public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- the maximum limit of bytes that can be read before the mark
position become invalid.public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
- if this stream has not been marked or if the mark has
been invalidated.public boolean markSupported()
markSupported
in class java.io.InputStream