public class CanonicalizeInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
CanonicalizeInputStream(iaik.utils.LineInputStream in,
java.lang.String boundary)
Creates a new CanonicalizeInputStream for canonicalizing the given LineInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public CanonicalizeInputStream(iaik.utils.LineInputStream in,
java.lang.String boundary)
in - the input stream to be canonicalizedboundary - the MIME boundarypublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamb - the byte array to which to readoff - the start offsetlen - the number of bytes to readjava.io.IOException - if a read error occurspublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException - if an I/O error occurspublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamn - the number of bytes to be skippedjava.io.IOException - if an I/O error occurrspublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException - if an I/O related problem occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.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.FilterInputStreamreadlimit - the read limit; ignoredpublic void reset()
throws java.io.IOException
mark/reset is not
supported by this stream.reset in class java.io.FilterInputStreamjava.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.FilterInputStreamfalse