Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.io: Javadoc index of package org.apache.http.io.


Package Samples:

org.apache.http.io

Classes:

ChunkedInputStream: This class implements chunked transfer coding as described in the Section 3.6.1 of RFC 2616 . It transparently coalesces chunks of a HTTP stream that uses chunked transfer coding. 3.6.1 Chunked Transfer Coding The chunked encoding modifies the body of a message in order to transfer it as a series of chunks, each with its own size indicator, followed by an OPTIONAL trailer containing entity-header fields. This allows dynamically produced content to be transferred along with the information necessary for the recipient to verify that it has received the full message. Chunked-Body = *chunk last-chunk ...
ChunkedOutputStream: This class implements chunked transfer coding as described in the Section 3.6.1 of RFC 2616 . Writes are buffered to an internal buffer (2048 default size). Chunks are guaranteed to be at least as large as the buffer size (except for the last chunk). 3.6.1 Chunked Transfer Coding The chunked encoding modifies the body of a message in order to transfer it as a series of chunks, each with its own size indicator, followed by an OPTIONAL trailer containing entity-header fields. This allows dynamically produced content to be transferred along with the information necessary for the recipient to verify ...
ContentLengthInputStream: This class cuts the wrapped InputStream off after a specified number of bytes. Note that this class NEVER closes the underlying stream, even when close gets called. Instead, it will read until the "end" of its chunking on close, which allows for the seamless invocation of subsequent HTTP 1.1 calls, while not requiring the client to remember to read the entire contents of the response. Implementation note: Choices abound. One approach would pass through the InputStream.mark(int) > InputStream.mark(int) 55 and InputStream.reset() > InputStream.reset() 55 calls to the underlying stream. That's tricky, ...
SocketFactory: A factory for creating Sockets. Both Object.equals() 55 and Object.hashCode() 55 should be overridden appropriately. Protocol socket factories are used to uniquely identify Protocol s and HostConfiguration s, and equals() and hashCode() are required for the correct operation of some connection managers.
SecureSocketFactory: A SocketFactory for secure sockets (SSL/TLS). See there for things to consider when implementing a socket factory.
HttpDataTransmitter: Interface for sending data. Unlike java.io.OutputStream , this interface is tailored to the needs of the HTTP components.
HttpDataReceiver: Interface for receiving data. Unlike java.io.InputStream , this interface is tailored to the needs of the HTTP components.
HttpDataOutputStream: A stream for writing to a HttpDataTransmitter .
HttpDataInputStream: A stream for reading from a HttpDataReceiver .
HttpDataTransmitterFactory: Factory for HttpDataTransmitter objects.
TestHttpDataOutputStream: Simple tests for HttpDataOutputStream .
HttpDataReceiverFactory: Factory for HttpDataReceiver objects.
TestHttpDataInputStream: Simple tests for HttpDataInputStream .
TestCharArrayBuffer: Unit tests for CharArrayBuffer .
TestByteArrayBuffer: Unit tests for ByteArrayBuffer .
ContentLengthOutputStream: A stream wrapper that closes itself after a defined number of bytes.
IdentityOutputStream: A stream for writing with an "identity" transport encoding.
MalformedChunkCodingException: Signals a malformed chunked stream.
ByteArrayBuffer: A resizable byte array.
CharArrayBuffer: A resizable char array.
TestChunkCoding
TestAllIO
TestContentLengthInputStream
TestIdentityOutputStream
TestContentLengthOutputStream

Home | Contact Us | Privacy Policy | Terms of Service