Package org.apache.http.io

The transport layer abstraction of the HTTP components.

See:
          Description

Interface Summary
HttpDataReceiver Interface for receiving data.
HttpDataReceiverFactory Factory for HttpDataReceiver objects.
HttpDataTransmitter Interface for sending data.
HttpDataTransmitterFactory Factory for HttpDataTransmitter objects.
SecureSocketFactory A SocketFactory for secure sockets (SSL/TLS).
SocketFactory A factory for creating Sockets.
 

Class Summary
ByteArrayBuffer A resizable byte array.
CharArrayBuffer A resizable char array.
ChunkedInputStream This class implements chunked transfer coding as described in the Section 3.6.1 of RFC 2616.
ChunkedOutputStream This class implements chunked transfer coding as described in the Section 3.6.1 of RFC 2616.
ContentLengthInputStream This class cuts the wrapped InputStream off after a specified number of bytes.
ContentLengthOutputStream A stream wrapper that closes itself after a defined number of bytes.
HttpDataInputStream A stream for reading from a HttpDataReceiver.
HttpDataOutputStream A stream for writing to a HttpDataTransmitter.
IdentityOutputStream A stream for writing with an "identity" transport encoding.
 

Exception Summary
MalformedChunkCodingException Signals a malformed chunked stream.
 

Package org.apache.http.io Description

The transport layer abstraction of the HTTP components. This layer is used to transfer messages over sockets. Sockets are always created through a factory. You can provide factories to create plain sockets, secure sockets based on SSL/TLS, sockets that connect over SOCKS hosts, sockets that implement bandwidth throttling, or whatever else you might think of.
The data transmitter and receiver interfaces with the respective factories provide an abstraction from java.io and java.nio. These interfaces are adapted to the plain output and input streams used in the core API.
There are implementations of the transport encodings used by HTTP, in particular the chunked encoding for sending and receiving entities. The helper classes for resizable byte and char arrays might be useful elsewhere, too.



Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.