全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス
java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.ByteArrayInputStream
StringBufferInputStream を使うこともできます。
 
 buf
	buf
   count
	count
   mark
	mark
   pos
	pos
   
 ByteArrayInputStream(byte[])
	ByteArrayInputStream(byte[])
   ByteArrayInputStream(byte[], int, 
int)
	ByteArrayInputStream(byte[], int, 
int)
   
 available()
	available()
   mark(int)
	mark(int)
   markSupported()
	markSupported()
   read()
	read()
   read(byte[], int, int)
	read(byte[], int, int)
  len バイトをバイト配列に読み込む。
   reset()
	reset()
   skip(long)
	skip(long)
  n バイト分スキップする。
 
 buf
buf
protected byte buf[]
 pos
pos
protected int pos
 mark
mark
protected int mark
mark() メソッドによりバッファ内の他の位置にマークが移されます。バッファの現在位置は reset() メソッドによりこの位置に設定されます。
 count
count
protected int count
 
 ByteArrayInputStream
ByteArrayInputStream
public ByteArrayInputStream(byte buf[])
 ByteArrayInputStream
ByteArrayInputStream
  public ByteArrayInputStream(byte buf[],
                              int offset,
                              int length)
length文字を読み込みます。
 このバイト配列はコピーされません。
 
 read
read
public synchronized int read()
0 から 255までの値をとる int として返されます。ストリームの最後に達して読み込むバイトが存在しない場合には -1 が返されます。 
 
  ByteArrayInputStream の read メソッドはブロックできません。
  
-1 。
     read
read
  public synchronized int read(byte b[],
                               int off,
                               int len)
len バイトのデータをバイト配列に読み込みます。 この read メソッドはブロックできません。
-1。
     skip
skip
public synchronized long skip(long n)
n バイト分スキップします。ストリームの最後に到達した場合には指定よりも少ない数スキップされることがあります。
 available
available
public synchronized int available()
  
 ByteArrayInputStream の available メソッドは入力バッファから読み込み可能な残りバイト数 count - pos を返します。
 markSupported
markSupported
public boolean markSupported()
 mark
mark
public void mark(int markpos)
 reset
reset
public synchronized void reset()
全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス