junkutil.crypt
クラス BASE64.InputStream

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

public static class BASE64.InputStream
extends java.io.FilterInputStream

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

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

フィールドの概要
 
クラス java.io.FilterInputStream から継承されたフィールド
in
 
コンストラクタの概要
BASE64.InputStream(java.io.InputStream in)
          Constructs a BASE64.InputStream in DECODE mode.
BASE64.InputStream(java.io.InputStream in, int options)
          Constructs a BASE64.InputStream in either ENCODE or DECODE mode.
 
メソッドの概要
 int read()
          Reads enough of the input stream to convert to/from BASE64 and returns the next byte.
 int read(byte[] dest, int off, int len)
          Calls read() repeatedly until the end of stream is reached or len bytes are read.
 
クラス java.io.FilterInputStream から継承されたメソッド
available, close, mark, markSupported, read, reset, skip
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BASE64.InputStream

public BASE64.InputStream(java.io.InputStream in)
Constructs a BASE64.InputStream in DECODE mode.

パラメータ:
in - the java.io.InputStream from which to read data.
導入されたバージョン:
1.3

BASE64.InputStream

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

Valid options:

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

Example: new BASE64.InputStream( in, BASE64.DECODE )

パラメータ:
in - the java.io.InputStream from which to read data.
options - Specified options
導入されたバージョン:
2.0
関連項目:
BASE64.ENCODE, BASE64.DECODE, BASE64.DO_BREAK_LINES
メソッドの詳細

read

public int read()
         throws java.io.IOException
Reads enough of the input stream to convert to/from BASE64 and returns the next byte.

オーバーライド:
クラス java.io.FilterInputStream 内の read
戻り値:
next byte
例外:
java.io.IOException
導入されたバージョン:
1.3

read

public int read(byte[] dest,
                int off,
                int len)
         throws java.io.IOException
Calls read() repeatedly until the end of stream is reached or len bytes are read. Returns number of bytes read into array or -1 if end of stream is encountered.

オーバーライド:
クラス java.io.FilterInputStream 内の read
パラメータ:
dest - array to hold values
off - offset for array
len - max number of bytes to read into array
戻り値:
bytes read into array or -1 if end of stream is encountered.
例外:
java.io.IOException
導入されたバージョン:
1.3