iText 8.0.2 API
iText.Kernel.Pdf.CountOutputStream Class Reference

An OutputStream that counts the written bytes. More...

Inheritance diagram for iText.Kernel.Pdf.CountOutputStream:

Public Member Functions

  CountOutputStream (Stream outputStream)
  Creates an instance of output stream which counts written bytes. More...
 
void  Write (byte[] b)
 
override long  Seek (long offset, SeekOrigin origin)
 
override void  SetLength (long value)
 
override int  Read (byte[] buffer, int offset, int count)
 
override void  Write (byte[] b, int off, int len)
 
void  Write (int b)
 
override void  Flush ()
 
override void  Close ()
 
virtual long  GetAmountOfWrittenBytes ()
  Gets amount of bytes written to the inner output stream. More...
 

Properties

override bool  CanRead [get]
 
override bool  CanSeek [get]
 
override bool  CanWrite [get]
 
override long  Length [get]
 
override long  Position [get, set]
 

Detailed Description

An OutputStream that counts the written bytes.

An OutputStream that counts the written bytes. You should not use same instance of this class in different threads as far as it's not thread safe.

Constructor & Destructor Documentation

◆ CountOutputStream()

iText.Kernel.Pdf.CountOutputStream.CountOutputStream ( Stream  outputStream )
inline

Creates an instance of output stream which counts written bytes.

Parameters
outputStream inner System.IO.Stream

Member Function Documentation

◆ Close()

override void iText.Kernel.Pdf.CountOutputStream.Close ( )
inline

◆ Flush()

override void iText.Kernel.Pdf.CountOutputStream.Flush ( )
inline

◆ GetAmountOfWrittenBytes()

virtual long iText.Kernel.Pdf.CountOutputStream.GetAmountOfWrittenBytes ( )
inlinevirtual

Gets amount of bytes written to the inner output stream.

Returns
amount of bytes

◆ Write() [1/3]

void iText.Kernel.Pdf.CountOutputStream.Write ( byte[]  b )
inline

◆ Write() [2/3]

override void iText.Kernel.Pdf.CountOutputStream.Write ( byte[]  b,
int  off,
int  len 
)
inline

◆ Write() [3/3]

void iText.Kernel.Pdf.CountOutputStream.Write ( int  b )
inline