org.apache.struts.upload
クラス MultipartValueStream

java.lang.Object
  拡張java.io.InputStream
      拡張org.apache.struts.upload.MultipartValueStream

推奨されていません。 Use the Commons FileUpload based multipart handler instead. This class will be removed after Struts 1.2.

class MultipartValueStream
extends java.io.InputStream

This class implements an inputStream that reads another stream until a multipart boundary is found. The class reports eof when boundary found. The undelying stream is not closed.

See RFC 1867 (http://info.internet.isi.edu:80/in-notes/rfc/files/rfc1867.txt) for details about the protocol.


フィールドの概要
private  byte[] boundaryBytes
          推奨されていません。 byte buffer with the boundary
private  boolean boundaryReached
          推奨されていません。 have we reached the boundary?
private  boolean finalBoundaryReached
          推奨されていません。 is the boundary found a final boundary?
static java.lang.String HEADER_ENCODING
          推奨されていません。  
private  java.io.InputStream in
          推奨されていません。 the underlying stream
private  int matchedBoundaryBytes
          推奨されていません。 how many curretly matched boundary bytes?
private  int readAheadBufferEndI
          推奨されていません。 The end index for the read ahead cyclic buffer (points to the last byte)
private  int readAheadBufferStartI
          推奨されていません。 The start index for the read ahead cyclic buffer (points to the first byte)
private  byte[] readAheadBytes
          推奨されていません。 the read ahead buffer (cyclic)
 
クラス java.io.InputStream から継承したフィールド
 
コンストラクタの概要
MultipartValueStream(java.io.InputStream in, java.lang.String boundary)
          推奨されていません。 Create a stream that stops reading at the boundary NOTE: the boundary parameter is without the trailing dashes "--".
 
メソッドの概要
 boolean encounteredFinalBoundary()
          推奨されていません。  
 int read()
          推奨されていません。 Read the next byte
 
クラス java.io.InputStream から継承したメソッド
available, close, mark, markSupported, read, read, reset, skip
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

HEADER_ENCODING

public static final java.lang.String HEADER_ENCODING
推奨されていません。 
関連項目:
定数フィールド値

in

private java.io.InputStream in
推奨されていません。 
the underlying stream


boundaryBytes

private byte[] boundaryBytes
推奨されていません。 
byte buffer with the boundary


matchedBoundaryBytes

private int matchedBoundaryBytes
推奨されていません。 
how many curretly matched boundary bytes?


readAheadBytes

private byte[] readAheadBytes
推奨されていません。 
the read ahead buffer (cyclic)


readAheadBufferStartI

private int readAheadBufferStartI
推奨されていません。 
The start index for the read ahead cyclic buffer (points to the first byte)


readAheadBufferEndI

private int readAheadBufferEndI
推奨されていません。 
The end index for the read ahead cyclic buffer (points to the last byte)


boundaryReached

private boolean boundaryReached
推奨されていません。 
have we reached the boundary?


finalBoundaryReached

private boolean finalBoundaryReached
推奨されていません。 
is the boundary found a final boundary?

コンストラクタの詳細

MultipartValueStream

public MultipartValueStream(java.io.InputStream in,
                            java.lang.String boundary)
                     throws java.io.IOException
推奨されていません。 
Create a stream that stops reading at the boundary NOTE: the boundary parameter is without the trailing dashes "--".

メソッドの詳細

read

public int read()
         throws java.io.IOException
推奨されていません。 
Read the next byte

戻り値:
-1 on boundary reached
例外:
java.io.IOException - if the ending boundary is never found

encounteredFinalBoundary

public boolean encounteredFinalBoundary()
                                 throws javax.servlet.ServletException
推奨されていません。 
戻り値:
true if we are the last stream, ie. we encountered a final boundary
例外:
javax.servlet.ServletException - if the boundary has not yet been reached


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation