| Modifier and Type | Field and Description |
|---|---|
| private static Thread | |
| pack-priv HttpClient | |
| pack-priv boolean | |
| private static final KeepAliveStreamCleaner | |
| protected volatile boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides sun. Implements java. Attempt to cache this connection |
| public boolean | |
| public void | mark(int limit)
Overrides sun. Marks the current position in this input stream. |
| public boolean | markSupported()
Overrides sun. Tests if this input stream supports the |
| private static void | |
| protected long | |
| public void | reset()
Overrides sun. Repositions this stream to the position at the time the
|
| protected void |
| cleanerThread | back to summary |
|---|---|
| private static Thread cleanerThread | |
| hc | back to summary |
|---|---|
| pack-priv HttpClient hc | |
| hurried | back to summary |
|---|---|
| pack-priv boolean hurried | |
| queue | back to summary |
|---|---|
| private static final KeepAliveStreamCleaner queue | |
| queuedForCleanup | back to summary |
|---|---|
| protected volatile boolean queuedForCleanup | |
| KeepAliveStream | back to summary |
|---|---|
| public KeepAliveStream(InputStream is, long expected, HttpClient hc) Constructor | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides sun. Implements java. Attempt to cache this connection
| |
| hurry | back to summary |
|---|---|
| public boolean hurry() Implements sun. | |
| mark | back to summary |
|---|---|
| public void mark(int limit) Overrides sun. Doc from java. Marks the current position in this input stream. A subsequent
call to the
The | |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides sun. Doc from java. Tests if this input stream supports the | |
| queueForCleanup | back to summary |
|---|---|
| private static void queueForCleanup(KeepAliveCleanerEntry kace) | |
| remainingToRead | back to summary |
|---|---|
| protected long remainingToRead() | |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides sun. Doc from java. Repositions this stream to the position at the time the
Stream marks are intended to be used in situations where you need to read ahead a little to see what's in the stream. Often this is most easily done by invoking some general parser. If the stream is of the type handled by the parse, it just chugs along happily. If the stream is not of that type, the parser should toss an exception when it fails. If this happens within readlimit bytes, it allows the outer code to reset the stream and try another parser.
| |
| setClosed | back to summary |
|---|---|
| protected void setClosed() | |