|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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(iaik.utils.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(iaik.utils.LineInputStream in,
java.lang.String boundary)
in - the input stream to be canonicalizedboundary - the MIME boundary| Method Detail |
|---|
public 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 read
java.io.IOException - if a read error occurs
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException - if an I/O error occurs
public long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamn - the number of bytes to be skipped
java.io.IOException - if an I/O error occurrs
public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException - if an I/O related problem occurs
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose 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; ignored
public 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
|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|