javax.mail.internet
Class AsciiOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--javax.mail.internet.AsciiOutputStream
- class AsciiOutputStream
- extends OutputStream
An OutputStream that determines whether the data written to
it is all ASCII, mostly ASCII, or mostly non-ASCII.
Method Summary |
int |
getAscii()
Return ASCII-ness of data stream. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsciiOutputStream
public AsciiOutputStream(boolean breakOnNonAscii)
write
public void write(int b)
throws IOException
- Overrides:
write
in class OutputStream
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
getAscii
public int getAscii()
- Return ASCII-ness of data stream.