|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.infoengine.object.IeInputStream
com.infoengine.object.IeMultipartInputStream
com.infoengine.soap.SOAPAttachmentInputStream
package only access, use specific to SOAP with attachments and the RPCHandler
Field Summary | |
private Iterator |
attachments
|
private String |
boundary
|
private String |
contentType
|
private javax.xml.soap.AttachmentPart |
currentAttachment
|
private ContentHeader |
currentHeader
|
private IeMultipartInputStream |
currentIs
|
Fields inherited from class com.infoengine.object.IeMultipartInputStream |
DEFAULT_BOUNDARY, DEFAULT_EOF, DEFAULT_EOL, eofRead, pushedBack, requestContentType |
Fields inherited from class com.infoengine.object.IeInputStream |
|
Fields inherited from class java.io.InputStream |
|
Constructor Summary | |
SOAPAttachmentInputStream(Iterator attachments,
javax.xml.soap.MimeHeaders mimeHeaders)
|
Method Summary | |
int |
available()
Returns the number of bytes that can be read without blocking. |
void |
close()
Closes the input stream and releases all resources allocated to it. |
String |
getBoundary()
Returns the MIME boundary string that separates the content objects read from the stream. |
ContentHeader |
getContentHeader()
Returns the last MIME content header object read from the input stream. |
String |
getContentType()
Returns the MIME content type associated with the multipart input stream as a whole. |
InputStream |
getInputStream()
Returns the input stream currently associated with this object. |
String |
getParameter(String name)
Returns the value of a named parameter. |
Enumeration |
getParameterNames()
Returns the names of all parameters. |
Vector |
getParameterValues(String name)
Returns the values of a named parameter. |
String |
getRequestContentType()
Returns the MIME content type associated with the incoming request. |
Enumeration |
getXGroups()
returns an Enumeration of IeGroup objects found in the incoming MIME stream. |
void |
mark(int readLimit)
Marks the current position in the input stream. |
boolean |
markSupported()
Returns an indication of support for input stream marking. |
boolean |
pushBackCalled()
Returns an indication of whether any MIME content headers have ever been pushed onto the internal stack. |
void |
pushBackHeader(ContentHeader header)
Pushes a MIME content header object onto an internal stack. |
int |
read()
Returns a byte from the input stream. |
int |
read(byte[] b)
Reads bytes from the input stream into an array. |
int |
read(byte[] b,
int off,
int len)
Read bytes from the input stream into an array or subarray. |
byte[] |
readBlob()
Reads the next BLOB on the input stream and returns it as a byte array. |
void |
readBlob(OutputStream os)
Reads the next BLOB on the input stream and writes it to an output stream. |
ContentHeader |
readBlobInfo()
Reads the next MIME content header from the input stream. |
String |
readBoundary()
Reads the next boundary line from the MIME input stream. |
String |
readLine()
Reads a line of text from the input stream using the default character encoding for the platform. |
int |
readLine(byte[] bbuf)
Reads the next line from the MIME input stream into a byte array. |
int |
readLine(byte[] bbuf,
int start,
int max)
Reads the next line from the MIME input stream into a byte array, beginning at a specific index of the array and continuing until the end of the line is detected or a maximum number of bytes is read. |
String |
readLine(String encoding)
Read a line of text from the input stream using a specified character encoding. |
IeRequest |
readRequest()
Reads the next content object from the input stream and parses it as an Info*Engine request object. |
String |
readText()
Reads the next text object on the input stream and returns it as a String. |
void |
readText(OutputStream os)
Reads the next text object on the input stream and writes it to an output stream. |
IeCollection |
readVdb()
Reads the next content object from the input stream and parses it as an Info*Engine VDB object. |
void |
reset()
Resets the input stream to the position of the last mark set. |
void |
setInputStream(InputStream is)
Sets the input stream associated with this object. |
long |
skip(long n)
Reads and discards bytes from the input stream. |
void |
streamBlobs(OutputStream os)
Copies every BLOB on the input stream to an output stream. |
Methods inherited from class com.infoengine.object.IeMultipartInputStream |
eofRead, getContentLength, readHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Iterator attachments
private ContentHeader currentHeader
private javax.xml.soap.AttachmentPart currentAttachment
private IeMultipartInputStream currentIs
private String contentType
private String boundary
Constructor Detail |
public SOAPAttachmentInputStream(Iterator attachments, javax.xml.soap.MimeHeaders mimeHeaders)
Method Detail |
public String getBoundary()
getBoundary
in class IeMultipartInputStream
public ContentHeader getContentHeader()
getContentHeader
in class IeMultipartInputStream
public String getContentType()
getContentType
in class IeMultipartInputStream
public String getParameter(String name)
Parameters are available only when an IeMultipartInputStream is derived from a ServletRequest object (see the appropriate constructor above). Parameters are form variables submitted in an HTTP POST request with the MIME type multipart/form-data.
getParameter
in class IeMultipartInputStream
name
- The name of the parameter.
public Enumeration getParameterNames()
Parameters are available only when an IeMultipartInputStream is derived from a ServletRequest object (see the appropriate constructor above). Parameters are form variables submitted in an HTTP POST request with the MIME type multipart/form-data.
getParameterNames
in class IeMultipartInputStream
public Vector getParameterValues(String name)
Parameters are available only when an IeMultipartInputStream is derived from a ServletRequest object (see the appropriate constructor above). Parameters are form variables submitted in an HTTP POST request with the MIME type multipart/form-data.
getParameterValues
in class IeMultipartInputStream
name
- The name of the parameter.
public String getRequestContentType()
getRequestContentType
in class IeMultipartInputStream
public Enumeration getXGroups()
getXGroups
in class IeMultipartInputStream
public boolean pushBackCalled()
pushBackCalled
in class IeMultipartInputStream
public void pushBackHeader(ContentHeader header)
pushBackHeader
in class IeMultipartInputStream
header
- The content header to be pushed onto the stack.public byte[] readBlob() throws IOException
readBlob
in class IeMultipartInputStream
IOException
- if the input stream can not be read
successfully.public void readBlob(OutputStream os) throws IOException
readBlob
in class IeMultipartInputStream
os
- The output stream on which to write the BLOB.
IOException
- if the input stream can not be read
successfully.public ContentHeader readBlobInfo() throws IOException
readBlobInfo
in class IeMultipartInputStream
IOException
- if the input stream can not be read
successfully.public String readBoundary() throws IOException
readBoundary
in class IeMultipartInputStream
IOException
- if the input stream can not be read
successfully.public int readLine(byte[] bbuf) throws IOException
readLine
in class IeMultipartInputStream
bbuf
- The byte array in which to store the bytes read from the
input stream.
IOException
- if the input stream can not be read
successfully.public int readLine(byte[] bbuf, int start, int max) throws IOException
readLine
in class IeMultipartInputStream
bbuf
- The byte array in which to store the bytes read from the
input stream.start
- The index of the array in which to store the first byte.max
- The maximum number of bytes to read.
IOException
- if the input stream can not be read
successfully.public IeRequest readRequest() throws IOException, IEException
readRequest
in class IeMultipartInputStream
IOException
- if the next object on the input stream is not an
Info*Engine request object.
IEException
public String readText() throws IOException
readText
in class IeMultipartInputStream
IOException
- if the input stream can not be read
successfully.public void readText(OutputStream os) throws IOException
readText
in class IeMultipartInputStream
os
- The output stream on which to write the text object.
IOException
- if the input stream can not be read
successfully.public IeCollection readVdb() throws IOException, IEException
readVdb
in class IeMultipartInputStream
IOException
- if the next object on the input stream is not an
Info*Engine VDB object.
IEException
public void streamBlobs(OutputStream os) throws IOException
streamBlobs
in class IeMultipartInputStream
os
- The output stream on which to write all of the BLOB's
read from the input stream.
IOException
- if the input stream can not be read or
the output stream can not be written
successfully.public int available() throws IOException
available
in class IeInputStream
IOException
- if the number of available bytes can not be
determined.public void close() throws IOException
close
in class IeInputStream
IOException
- if the output stream can not be closed.public InputStream getInputStream()
getInputStream
in class IeInputStream
public void mark(int readLimit)
mark
in class IeInputStream
readLimit
- The position to be marked.public boolean markSupported()
markSupported
in class IeInputStream
public int read() throws IOException
read
in class IeInputStream
IOException
- if the input stream can not be read.public int read(byte[] b) throws IOException
read
in class IeInputStream
b
- The array in which to store the bytes read.
IOException
- if the input stream can not be read.public int read(byte[] b, int off, int len) throws IOException
read
in class IeInputStream
b
- The array in which to store the bytes read.off
- The offset in the array at which to begin storing bytes.len
- The maximum number of bytes to read.
IOException
- if the input stream can not be read.public String readLine() throws IOException
readLine
in class IeInputStream
IOException
- if the input stream can not be read.public String readLine(String encoding) throws IOException
readLine
in class IeInputStream
encoding
- the character encoding to apply to the connection
IOException
public void reset() throws IOException
reset
in class IeInputStream
IOException
- if the input stream can not be reset.public void setInputStream(InputStream is)
setInputStream
in class IeInputStream
is
- The input stream to associate with this object.public long skip(long n) throws IOException
skip
in class IeInputStream
n
- The number of bytes to read and discard.
IOException
- if the input stream can not be read.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |