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

Quick Search    Search Deep

com.diaam.lgpl.ts
Class MinReader.Stream  view MinReader.Stream download MinReader.Stream.java

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.diaam.lgpl.ts.MinReader.Stream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
MinReader

private class MinReader.Stream
extends java.io.InputStream


Field Summary
(package private)  char[] buf
           
 
Constructor Summary
private MinReader.Stream()
           
 
Method Summary
 int available()
          This method returns the number of bytes that can be read from this stream before a read can block.
 int read()
          This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255.
 int read(byte[] _b, int _d, int _l)
          Merci a l'équipe d'Alma ! Pour des raisons qui m'échappent, il faut surcharger cette méthode.
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

char[] buf
Constructor Detail

MinReader.Stream

private MinReader.Stream()
Method Detail

read

public int read()
         throws java.io.IOException
Description copied from class: java.io.InputStream
This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255. This method also will return -1 if the end of the stream has been reached.

This method will block until the byte can be read.


available

public int available()
Description copied from class: java.io.InputStream
This method returns the number of bytes that can be read from this stream before a read can block. A return of 0 indicates that blocking might (or might not) occur on the very next read attempt.

This method always returns 0 in this class


read

public int read(byte[] _b,
                int _d,
                int _l)
         throws java.io.IOException
Merci a l'équipe d'Alma ! Pour des raisons qui m'échappent, il faut surcharger cette méthode.