1.0.0

org.eclipse.soda.dk.testmanager.servlet
Class MimeMultiPart.PartInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.eclipse.soda.dk.testmanager.servlet.MimeMultiPart.PartInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
MimeMultiPart

public class MimeMultiPart.PartInputStream
extends java.io.FilterInputStream

Version:
1.2.0

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MimeMultiPart.PartInputStream()
          Constructs an instance of this class.
 
Method Summary
 int available()
          Available and return the int result.
 void close()
          Close.
 java.lang.String getCharacterEncoding()
          Gets the character encoding (String) value.
 boolean isLastPart()
          Gets the last part (boolean) value.
 int read()
          Read and return the int result.
 int read(byte[] buffer, int offset, int length)
          Read with the specified buffer, offset and length parameters and return the int result.
protected  java.lang.String readLine()
          Read line and return the String result.
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeMultiPart.PartInputStream

public MimeMultiPart.PartInputStream()
                              throws java.io.IOException
Constructs an instance of this class.

Throws:
java.io.IOException - IOException.
Method Detail

available

public int available()
              throws java.io.IOException
Available and return the int result.

Overrides:
available in class java.io.FilterInputStream
Returns:
Results of the available (int) value.
Throws:
java.io.IOException - IOException.

close

public void close()
           throws java.io.IOException
Close.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterInputStream
Throws:
java.io.IOException - IOException.

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Gets the character encoding (String) value.

Returns:
The character encoding (String) value.

isLastPart

public boolean isLastPart()
                   throws java.io.IOException
Gets the last part (boolean) value.

Returns:
the lastPart
Throws:
java.io.IOException - IOException.

read

public int read()
         throws java.io.IOException
Read and return the int result.

Overrides:
read in class java.io.FilterInputStream
Returns:
Results of the read (int) value.
Throws:
java.io.IOException - IOException.
See Also:
read(byte[],int,int)

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Read with the specified buffer, offset and length parameters and return the int result.

Overrides:
read in class java.io.FilterInputStream
Parameters:
buffer - The buffer (byte[]) parameter.
offset - The offset (int) parameter.
length - The length (int) parameter.
Returns:
Results of the read (int) value.
Throws:
java.io.IOException - IOException.
See Also:
read()

readLine

protected java.lang.String readLine()
                             throws java.io.IOException
Read line and return the String result.

Returns:
Results of the read line (String) value.
Throws:
java.io.IOException - IOException.

1.0.0

Copyright (c) 2007, 2009 IBM