Package org.springframework.ws.transport
Class TransportInputStream
java.lang.Object
java.io.InputStream
org.springframework.ws.transport.TransportInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
TransportInputStream
is an input stream with MIME input headers. It is used to construct
WebServiceMessages
from a transport.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
protected abstract InputStream
Returns the input stream to read from.Returns an iteration over all the header names this stream contains.getHeaders
(String name) Returns an iteration over all the string values of the specified header.void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
reset()
long
skip
(long n) Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
TransportInputStream
protected TransportInputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
createInputStream
Returns the input stream to read from.- Throws:
IOException
-
getHeaderNames
Returns an iteration over all the header names this stream contains. Returns an emptyIterator
if there are no headers.- Throws:
IOException
-
getHeaders
Returns an iteration over all the string values of the specified header. Returns an emptyIterator
if there are no headers of the specified name.- Throws:
IOException
-