net.oauth.client
Class ExcerptInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by net.oauth.client.ExcerptInputStream
All Implemented Interfaces:
java.io.Closeable

public class ExcerptInputStream
extends java.io.BufferedInputStream

A decorator that retains a copy of the first few bytes of data.


Field Summary
static byte[] ELLIPSIS
          A marker that's appended to the excerpt if it's less than the complete stream.
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ExcerptInputStream(java.io.InputStream in)
           
 
Method Summary
 byte[] getExcerpt()
          The first few bytes of data, plus ELLIPSIS if there are more bytes.
 
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELLIPSIS

public static final byte[] ELLIPSIS
A marker that's appended to the excerpt if it's less than the complete stream.

Constructor Detail

ExcerptInputStream

public ExcerptInputStream(java.io.InputStream in)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getExcerpt

public byte[] getExcerpt()
The first few bytes of data, plus ELLIPSIS if there are more bytes.



Copyright © 2009. All Rights Reserved.