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 Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic abstract void addHeader(String name, String value) throws IOException
name - the name of the headervalue - the value of the headerIOExceptionprotected abstract OutputStream createOutputStream() throws IOException
IOExceptionCopyright © 2023 VMware, Inc.. All rights reserved.