ch.qos.logback.core.encoder
Class EventObjectInputStream<E>

java.lang.Object
  extended by java.io.InputStream
      extended by ch.qos.logback.core.encoder.EventObjectInputStream<E>
Type Parameters:
E -
All Implemented Interfaces:
Closeable

public class EventObjectInputStream<E>
extends InputStream

Restitute the contents of an input stream as java objects.

Author:
Ceki Gülcü

Method Summary
 int available()
          Returns the number of bytes available
 void close()
           
 int read()
           
 E readEvent()
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

available

public int available()
              throws IOException
Returns the number of bytes available

Overrides:
available in class InputStream
Throws:
IOException

readEvent

public E readEvent()
            throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2005-2012 QOS.ch. All Rights Reserved.