junkutil.crypt
クラス BASE64.OutputStream

java.lang.Object
  上位を拡張 java.io.OutputStream
      上位を拡張 java.io.FilterOutputStream
          上位を拡張 junkutil.crypt.BASE64.OutputStream
すべての実装されたインタフェース:
java.io.Closeable, java.io.Flushable
含まれているクラス:
BASE64

public static class BASE64.OutputStream
extends java.io.FilterOutputStream

A BASE64.OutputStream will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from BASE64 notation on the fly.

導入されたバージョン:
1.3
関連項目:
BASE64

フィールドの概要
 
クラス java.io.FilterOutputStream から継承されたフィールド
out
 
コンストラクタの概要
BASE64.OutputStream(java.io.OutputStream out)
          Constructs a BASE64.OutputStream in ENCODE mode.
BASE64.OutputStream(java.io.OutputStream out, int options)
          Constructs a BASE64.OutputStream in either ENCODE or DECODE mode.
 
メソッドの概要
 void close()
          Flushes and closes (I think, in the superclass) the stream.
 void flushBase64()
          Method added by PHIL.
 void resumeEncoding()
          Resumes encoding of the stream.
 void suspendEncoding()
          Suspends encoding of the stream.
 void write(byte[] theBytes, int off, int len)
          Calls write(int) repeatedly until len bytes are written.
 void write(int theByte)
          Writes the byte to the output stream after converting to/from BASE64 notation.
 
クラス java.io.FilterOutputStream から継承されたメソッド
flush, write
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BASE64.OutputStream

public BASE64.OutputStream(java.io.OutputStream out)
Constructs a BASE64.OutputStream in ENCODE mode.

パラメータ:
out - the java.io.OutputStream to which data will be written.
導入されたバージョン:
1.3

BASE64.OutputStream

public BASE64.OutputStream(java.io.OutputStream out,
                           int options)
Constructs a BASE64.OutputStream in either ENCODE or DECODE mode.

Valid options:

   ENCODE or DECODE: Encode or Decode as data is read.
   DO_BREAK_LINES: don't break lines at 76 characters
     (only meaningful when encoding)
 

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

パラメータ:
out - the java.io.OutputStream to which data will be written.
options - Specified options.
導入されたバージョン:
1.3
関連項目:
BASE64.ENCODE, BASE64.DECODE, BASE64.DO_BREAK_LINES
メソッドの詳細

write

public void write(int theByte)
           throws java.io.IOException
Writes the byte to the output stream after converting to/from BASE64 notation. When encoding, bytes are buffered three at a time before the output stream actually gets a write() call. When decoding, bytes are buffered four at a time.

オーバーライド:
クラス java.io.FilterOutputStream 内の write
パラメータ:
theByte - the byte to write
例外:
java.io.IOException
導入されたバージョン:
1.3

write

public void write(byte[] theBytes,
                  int off,
                  int len)
           throws java.io.IOException
Calls write(int) repeatedly until len bytes are written.

オーバーライド:
クラス java.io.FilterOutputStream 内の write
パラメータ:
theBytes - array from which to read bytes
off - offset for array
len - max number of bytes to read into array
例外:
java.io.IOException
導入されたバージョン:
1.3

flushBase64

public void flushBase64()
                 throws java.io.IOException
Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer without closing the stream.

例外:
java.io.IOException - if there's an error.

close

public void close()
           throws java.io.IOException
Flushes and closes (I think, in the superclass) the stream.

定義:
インタフェース java.io.Closeable 内の close
オーバーライド:
クラス java.io.FilterOutputStream 内の close
例外:
java.io.IOException
導入されたバージョン:
1.3

suspendEncoding

public void suspendEncoding()
                     throws java.io.IOException
Suspends encoding of the stream. May be helpful if you need to embed a piece of base64-encoded data in a stream.

例外:
java.io.IOException - if there's an error flushing
導入されたバージョン:
1.5.1

resumeEncoding

public void resumeEncoding()
Resumes encoding of the stream. May be helpful if you need to embed a piece of base64-encoded data in a stream.

導入されたバージョン:
1.5.1