java.lang.Object
java.io.OutputStream
jakarta.mail.internet.AsciiOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An OutputStream that determines whether the data written to
it is all ASCII, mostly ASCII, or mostly non-ASCII.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
breakOnNonAscii
private boolean breakOnNonAscii -
ascii
private int ascii -
non_ascii
private int non_ascii -
linelen
private int linelen -
longLine
private boolean longLine -
badEOL
private boolean badEOL -
checkEOL
private boolean checkEOL -
lastb
private int lastb -
ret
private int ret
-
-
Constructor Details
-
AsciiOutputStream
public AsciiOutputStream(boolean breakOnNonAscii, boolean encodeEolStrict)
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
check
- Throws:
IOException
-
getAscii
public int getAscii()Return ASCII-ness of data stream.
-