org.springframework.ws.transport
Class TransportOutputStream
java.lang.Object
java.io.OutputStream
org.springframework.ws.transport.TransportOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public abstract class TransportOutputStream
- extends OutputStream
A TransportOutputStream
is an output stream with MIME input headers. It is used to write WebServiceMessages
to a transport.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
addHeader(String,String)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportOutputStream
protected TransportOutputStream()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
addHeader
public abstract void addHeader(String name,
String value)
throws IOException
- Adds a header with the given name and value. This method can be called multiple times, to allow for headers with
multiple values.
- Parameters:
name
- the name of the headervalue
- the value of the header
- Throws:
IOException
createOutputStream
protected abstract OutputStream createOutputStream()
throws IOException
- Returns the output stream to write to.
- Throws:
IOException
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.