com.ibm.portal.resolver.streams
Class MultipartInputStream.Entry

java.lang.Object
  extended by java.io.InputStream
      extended by com.ibm.portal.resolver.streams.MultipartInputStream.Entry
All Implemented Interfaces:
IterableListModel<java.util.Map.Entry<java.lang.String,java.lang.String>>, ListModel<java.util.Map.Entry<java.lang.String,java.lang.String>>, MetaData<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.String>>, MultipartStream.Entry, java.io.Closeable, java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>, java.nio.channels.Channel
Direct Known Subclasses:
FormDataInputStream.Entry
Enclosing class:
MultipartInputStream

public abstract static class MultipartInputStream.Entry
extends java.io.InputStream
implements MultipartStream.Entry, java.nio.channels.Channel

Represents an entry in this archive input stream. The stream representation of the entry will close the entry but not the complete stream


Constructor Summary
MultipartInputStream.Entry()
           
 
Method Summary
abstract  void close()
          Delegates to the ArchiveInputStream#closeEntry() method of the hosting stream
abstract  void write(java.io.OutputStream out)
          Copies the content of the entry to the output stream
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.portal.resolver.streams.MultipartStream.Entry
getContentType, getNames, iterator
 
Methods inherited from interface com.ibm.portal.MetaData
getValue
 
Methods inherited from interface java.nio.channels.Channel
isOpen
 

Constructor Detail

MultipartInputStream.Entry

public MultipartInputStream.Entry()
Method Detail

close

public abstract void close()
                    throws java.io.IOException
Delegates to the ArchiveInputStream#closeEntry() method of the hosting stream

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

write

public abstract void write(java.io.OutputStream out)
                    throws java.io.IOException
Copies the content of the entry to the output stream

Parameters:
out - target stream, not null
Throws:
java.io.IOException
Since:
7.0.0.1