Click or drag to resize

FilterWriter Class

FilterWriter is a utility class providing a convenient way to write data to an output filter (using Filter directly is not very intuitive).
Inheritance Hierarchy
SystemObject
  pdftron.FiltersFilterWriter

Namespace:  pdftron.Filters
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class FilterWriter : IClosable

The FilterWriter type exposes the following members.

Constructors
  NameDescription
Public methodFilterWriter
Creates a new filter writer instance.
Top
Methods
  NameDescription
Public methodClose
Public methodCount
Gets the number of bytes consumed since opening the filter or since the last Seek operation.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFlush
Forces any data remaining in the buffer to be read from or written to input or output filter.
Public methodFlushAll
Forces any data remaining in the filter chain to the source or destination.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSeek
Sets the position within the current stream.
Public methodTell
Reports the current read position in the stream relative to the stream origin.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteBuffer
Writes a buffer to the stream.
Public methodWriteByte
Writes a single byte to the stream.
Public methodWriteFilter
Write the entire input stream to the output stream (i.e. to this FilterWriter).
Public methodWriteInt(Int32)
Writes an int to the stream.
Public methodWriteInt(Int64)
Writes an int to the stream.
Public methodWriteLine
Writes out a null terminated 'line' followed by a end of line character default end of line character is carriage return.
Public methodWriteString
Writes a string to the stream.
Public methodWriteUInt(UInt32)
Writes a uint to the stream.
Public methodWriteUInt(UInt64)
Writes a uint to the stream.
Top
Examples
StdFile outfile = new StdFile("file.dat", StdFileOpenMode.e_write_mode);
FilterWriter fwriter =n ew FilterWriter(outfile);
byte[] buf = ...
fwriter.WriteBuffer(buf);
fwriter.Flush();
See Also