XBinder C# Runtime Library
2.8
|
A Base64.DecoderWriter will write binary data to a java.io.OutputStream
, given in the constructor, while decoding the Base64 characters you write.
More...
Public Member Functions | |
DecoderWriter (System.IO.Stream out_Renamed) | |
Constructs a Base64.DecoderWriter. More... | |
void | write (char theChar) |
Writes the char to the output stream after converting from Base64 notation. When decoding, chars are buffered four at a time. More... | |
override void | Write (System.Char[] theChars, int off, int len) |
Calls write(char) repeatedly until len chars are written. More... | |
override void | Flush () |
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... | |
A Base64.DecoderWriter will write binary data to a java.io.OutputStream
, given in the constructor, while decoding the Base64 characters you write.
Convenience method for decoding data to a file.
dataToDecode | Base64-encoded data as a string |
filename | Filename for saving decoded data |
true
if successful, false
otherwisefilename | Filename for reading encoded data |
filename | Filename for reading binary data |
java.io.InputStream
, given in the constructor, and encode/decode to/from Base64 notation on the fly.in | the java.io.InputStream from which to read data. |
Valid options:
ENCODE or DECODE: Encode or Decode as data is read. DONT_BREAK_LINES: don't break lines at 76 characters (only meaningful when encoding) Note: Technically, this makes your encoding non-compliant.
Example: new Base64.InputStream( in, Base64.DECODE )
in | the java.io.InputStream from which to read data. |
options | Specified options |
dest | array to hold values |
off | offset for array |
len | max number of bytes to read into array |
<since> 1.3 </since>
com.objsys.xbinder.runtime.Base64.DecoderWriter.DecoderWriter | ( | System.IO.Stream | out_Renamed | ) |
Constructs a Base64.DecoderWriter.
out | the java.io.OutputStream to which data will be written. |
<since> 1.3 </since>
override void com.objsys.xbinder.runtime.Base64.DecoderWriter.Close | ( | ) |
Flushes and closes (I think, in the superclass) the stream.
<since> 1.3 </since>
override void com.objsys.xbinder.runtime.Base64.DecoderWriter.Flush | ( | ) |
Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer without closing the stream.
void com.objsys.xbinder.runtime.Base64.DecoderWriter.write | ( | char | theChar | ) |
Writes the char to the output stream after converting from Base64 notation. When decoding, chars are buffered four at a time.
theChar | the byte to write |
<since> 1.3 </since>
override void com.objsys.xbinder.runtime.Base64.DecoderWriter.Write | ( | System.Char [] | theChars, |
int | off, | ||
int | len | ||
) |
Calls write(char) repeatedly until len chars are written.
theChars | array from which to read chars |
off | offset for array |
len | max number of chars to read into array |
<since> 1.3 </since>