public abstract class TransportOutputStream extends OutputStream
TransportOutputStream
is an output stream with MIME input headers. It is used to write WebServiceMessages
to a transport.addHeader(String,String)
Modifier | Constructor and Description |
---|---|
protected |
TransportOutputStream() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addHeader(String name,
String value)
Adds a header with the given name and value.
|
void |
close() |
protected abstract OutputStream |
createOutputStream()
Returns the output stream to write to.
|
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public abstract void addHeader(String name, String value) throws IOException
name
- the name of the headervalue
- the value of the headerIOException
protected abstract OutputStream createOutputStream() throws IOException
IOException
Copyright © 2020 Pivotal Software. All rights reserved.