APIdia Launch Partner
Top Description Fields Constructors Methods
sun.net.httpserver

pack-priv Class UndefLengthOutputStream

extends FilterOutputStream
Class Inheritance
Imports
java.io.*, java.util.Objects

a class which allows the caller to write an indefinite number of bytes to an underlying stream , but without using chunked encoding. Used for http/1.0 clients only The underlying connection needs to be closed afterwards.

Field Summary

Modifier and TypeField and Description
private boolean
pack-priv ExchangeImpl
t

Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Closes this output stream and releases any system resources associated with the stream.

public void
write(int b)

Overrides java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

public void
write(byte[] b, int off, int len)

Overrides java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.

Inherited from java.io.FilterOutputStream:
flushwrite

Field Detail

closedback to summary
private boolean closed

Hides java.io.FilterOutputStream.closed.

tback to summary
pack-priv ExchangeImpl t

Constructor Detail

UndefLengthOutputStreamback to summary
pack-priv UndefLengthOutputStream(ExchangeImpl t, OutputStream src)

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterOutputStream.close.

Closes this output stream and releases any system resources associated with the stream.

Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(int b) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

The write method of FilterOutputStream calls the write method of its underlying output stream, that is, it performs out.write(b).

Implements the abstract write method of OutputStream.

Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(byte[] b, int off, int len) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.

Exceptions
IOException:
if an I/O error occurs.