wt.util
Class RMIMPInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bywt.util.RMIMPInputStream
All Implemented Interfaces:
MPInputStreamIfc

public class RMIMPInputStream
extends FilterInputStream
implements MPInputStreamIfc


Field Summary
private  Properties bodyHeaders
           
private  int cursor
           
private static boolean DEBUG
           
private static String DEBUG_PROP
           
private  String encoding
           
private  Vector postData
           
private  InputStream stream
           
private static String uploadDir
           
private static String UPLOADDIR_PROP
           
private static String UPLOADDIR_PROP2
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
RMIMPInputStream(Vector postData)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean containsBodyHeader(String s)
           
 String getBodyHeader(String s)
           
 Enumeration getBodyHeaders()
           
 String getEncoding()
           
 boolean hasMoreObjectBodies()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 String readString()
           
 void setEncoding(String encoding)
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uploadDir

private static String uploadDir

UPLOADDIR_PROP

private static String UPLOADDIR_PROP

UPLOADDIR_PROP2

private static String UPLOADDIR_PROP2

DEBUG

private static boolean DEBUG

DEBUG_PROP

private static String DEBUG_PROP

postData

private Vector postData

bodyHeaders

private Properties bodyHeaders

encoding

private String encoding

cursor

private int cursor

stream

private InputStream stream
Constructor Detail

RMIMPInputStream

public RMIMPInputStream(Vector postData)
Method Detail

setEncoding

public void setEncoding(String encoding)
Specified by:
setEncoding in interface MPInputStreamIfc

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface MPInputStreamIfc

hasMoreObjectBodies

public boolean hasMoreObjectBodies()
                            throws IOException
Specified by:
hasMoreObjectBodies in interface MPInputStreamIfc
Throws:
IOException

getBodyHeaders

public Enumeration getBodyHeaders()
Specified by:
getBodyHeaders in interface MPInputStreamIfc

getBodyHeader

public String getBodyHeader(String s)
Specified by:
getBodyHeader in interface MPInputStreamIfc

containsBodyHeader

public boolean containsBodyHeader(String s)
Specified by:
containsBodyHeader in interface MPInputStreamIfc

read

public int read()
         throws IOException
Specified by:
read in interface MPInputStreamIfc
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Specified by:
read in interface MPInputStreamIfc
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Specified by:
read in interface MPInputStreamIfc
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Specified by:
skip in interface MPInputStreamIfc
Throws:
IOException

available

public int available()
Specified by:
available in interface MPInputStreamIfc

readString

public String readString()
Specified by:
readString in interface MPInputStreamIfc

close

public void close()
           throws IOException
Throws:
IOException