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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.io.Reader
      extended bycom.diaam.lgpl.ts.MinReader

public class MinReader
extends java.io.Reader

MinReader est une sorte de "workeuround" au fait que je ne sois pas @?!\@@ parvenu à faire fonctionner des "pipe" java avec Pnuts. Elle stoque les caractères qu'on lui envoi avec aj pour les délivrer lors d'un read : c'est un Reader, tout de même... Quelles sont les modifs depuis la dernière version ? Juste la méthode "asStream", où je dois à l'équipe d'Alma quelques judicieuses contributions.

Cette classe est en diffusion LGPL, et elle est téléchargeable à http://perso.club-internet.fr/hagnoux/java/TerminalStandard.

Version:
111999

Nested Class Summary
private  class MinReader.Stream
           
 
Field Summary
private  int début
           
private  int fin
           
private  boolean ouvert
           
private  char[] readerBuf
           
private static int TAILLE_BUF_IN
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
MinReader()
          R.A.S.
 
Method Summary
 void aj(char clef)
          Ajoute des caractères à lire par read.
 java.io.InputStream asStream()
          Renvoit un InputStream intermédiaire.
 void close()
          R.A.S.
 int read(char[] cbuf, int off, int len)
          R.A.S.
 boolean ready()
          R.A.S.
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAILLE_BUF_IN

private static final int TAILLE_BUF_IN
See Also:
Constant Field Values

ouvert

private boolean ouvert

readerBuf

private char[] readerBuf

début

private int début

fin

private int fin
Constructor Detail

MinReader

public MinReader()
R.A.S.

Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
R.A.S.


close

public void close()
R.A.S.


aj

public void aj(char clef)
Ajoute des caractères à lire par read.


ready

public boolean ready()
R.A.S.


asStream

public java.io.InputStream asStream()
Renvoit un InputStream intermédiaire.