|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.lowagie.text.rtf.document.output.RtfNilOutputStream
public final class RtfNilOutputStream
The RtfNilOutputStream is a dummy output stream that sends all bytes to the big byte bucket in the sky. It is used to improve speed in those situations where processing is required, but the results are not needed.
Field Summary | |
---|---|
private long |
size
The number of bytes theoretically written is stored. |
Constructor Summary | |
---|---|
RtfNilOutputStream()
Constructs a new RtfNilOutputStream . |
Method Summary | |
---|---|
long |
getSize()
Gets the number of bytes that were written. |
void |
write(byte[] b,
int off,
int len)
Write a byte[] . |
void |
write(int b)
Write an int. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long size
Constructor Detail |
---|
public RtfNilOutputStream()
RtfNilOutputStream
.
Method Detail |
---|
public long getSize()
public void write(int b)
write
in class OutputStream
public void write(byte[] b, int off, int len)
byte[]
. The size is incremented, but the actual data is thrown away.
write
in class OutputStream
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |