|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream iaik.smime.CanonicalizeInputStream
public class CanonicalizeInputStream
Canonicalizes an input stream so that any line is finished by a CRFL (13, 10).
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
CanonicalizeInputStream(LineInputStream in,
java.lang.String boundary)
Creates a new CanonicalizeInputStream for canonicalizing the given LineInputStream. |
Method Summary | |
---|---|
int |
available()
Returns the number of bytes that can be read without blocking. |
void |
close()
Closes this input stream. |
void |
mark(int readlimit)
Does nothing since mark /reset is not
supported by this stream. |
boolean |
markSupported()
Returns false since mark/reset
is not supported by this input stream. |
int |
read()
Reads the next byte. |
int |
read(byte[] b,
int off,
int len)
Reads and canonicalizes up to len bytes in the given byte array. |
void |
reset()
Throws an IOException since mark /reset is not
supported by this stream. |
long |
skip(long n)
Skips the given number of bytes. |
Methods inherited from class java.io.FilterInputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CanonicalizeInputStream(LineInputStream in, java.lang.String boundary)
in
- the input stream to be canonicalizedboundary
- the MIME boundaryMethod Detail |
---|
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
b
- the byte array to which to readoff
- the start offsetlen
- the number of bytes to read
java.io.IOException
- if a read error occurspublic int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error occurspublic long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
n
- the number of bytes to be skipped
java.io.IOException
- if an I/O error occurrspublic int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
- if an I/O related problem occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error occurs when closing the stream.public void mark(int readlimit)
mark
/reset
is not
supported by this stream.
mark
in class java.io.FilterInputStream
readlimit
- the read limit; ignoredpublic void reset() throws java.io.IOException
mark
/reset
is not
supported by this stream.
reset
in class java.io.FilterInputStream
java.io.IOException
- thrown in any case since mark
/reset
is not supported by this stream.public boolean markSupported()
false
since mark/reset
is not supported by this input stream.
markSupported
in class java.io.FilterInputStream
false
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |