XBinder C# Runtime Library  2.8
Public Member Functions | Properties | List of all members
com.objsys.xbinder.runtime.Base64.EncoderOutputStream Class Reference

A Base64.EncoderOutputStream will write character data to a java.io.Writer, given in the constructor, while encoding the bytes you write to Base64 notation. More...

Inheritance diagram for com.objsys.xbinder.runtime.Base64.EncoderOutputStream:

Public Member Functions

 EncoderOutputStream (System.IO.StreamWriter out_Renamed)
 Constructs a Base64.OutputStream in ENCODE mode. More...
 
 EncoderOutputStream (System.IO.StreamWriter out_Renamed, int options)
 Constructs a Base64.OutputStream in either ENCODE or DECODE mode. More...
 
void WriteByte (int theByte)
 Writes the byte to the output stream after converting to/from Base64 notation. Bytes are buffered three at a time before the output stream actually gets a write() call. More...
 
override void WriteByte (byte theByte)
 
override void Write (System.Byte[] theBytes, int off, int len)
 Calls write(int) repeatedly until len bytes are written. More...
 
virtual void flushBase64 ()
 Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer without closing the stream. More...
 
override void Close ()
 Flushes and closes (I think, in the superclass) the stream. More...
 
override void Flush ()
 Flushes any stored up bytes and resets the current position back to zero. More...
 
override System.Int64 Seek (System.Int64 offset, System.IO.SeekOrigin origin)
 
override void SetLength (System.Int64 value)
 
override System.Int32 Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count)
 

Properties

override System.Boolean CanRead [get]
 
override System.Boolean CanSeek [get]
 
override System.Boolean CanWrite [get]
 
override System.Int64 Length [get]
 
override System.Int64 Position [get, set]
 

Detailed Description

A Base64.EncoderOutputStream will write character data to a java.io.Writer, given in the constructor, while encoding the bytes you write to Base64 notation.

See also
Base64

<since> 1.3 </since>

Constructor & Destructor Documentation

◆ EncoderOutputStream() [1/2]

com.objsys.xbinder.runtime.Base64.EncoderOutputStream.EncoderOutputStream ( System.IO.StreamWriter  out_Renamed)

Constructs a Base64.OutputStream in ENCODE mode.

Parameters
outthe java.io.Writer to which data will be written.

<since> 1.3 </since>

◆ EncoderOutputStream() [2/2]

com.objsys.xbinder.runtime.Base64.EncoderOutputStream.EncoderOutputStream ( System.IO.StreamWriter  out_Renamed,
int  options 
)

Constructs a Base64.OutputStream in either ENCODE or DECODE mode.

Valid options:

ENCODE: Encode data.
DONT_BREAK_LINES: don't break lines at 76 characters
Note: Technically, this makes your encoding non-compliant.

Example: new Base64.OutputStream( out, Base64.ENCODE )

Parameters
outthe java.io.Writer to which data will be written.
optionsSpecified options.
See also
Base64.ENCODE
See also
Base64.DONT_BREAK_LINES

<since> 1.3 </since>

Member Function Documentation

◆ Close()

override void com.objsys.xbinder.runtime.Base64.EncoderOutputStream.Close ( )

Flushes and closes (I think, in the superclass) the stream.

<since> 1.3 </since>

◆ Flush()

override void com.objsys.xbinder.runtime.Base64.EncoderOutputStream.Flush ( )

Flushes any stored up bytes and resets the current position back to zero.

◆ flushBase64()

virtual void com.objsys.xbinder.runtime.Base64.EncoderOutputStream.flushBase64 ( )
virtual

Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer without closing the stream.

◆ Write()

override void com.objsys.xbinder.runtime.Base64.EncoderOutputStream.Write ( System.Byte []  theBytes,
int  off,
int  len 
)

Calls write(int) repeatedly until len bytes are written.

Parameters
theBytesarray from which to read bytes
offoffset for array
lenmax number of bytes to read into array

<since> 1.3 </since>

◆ WriteByte()

void com.objsys.xbinder.runtime.Base64.EncoderOutputStream.WriteByte ( int  theByte)

Writes the byte to the output stream after converting to/from Base64 notation. Bytes are buffered three at a time before the output stream actually gets a write() call.

Parameters
theBytethe byte to write

<since> 1.3 </since>