|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
cds.aladin.MyInputStream
public final class MyInputStream
Plan dedie au stream.
Field Summary | |
---|---|
static long |
AIPSTABLE
|
static long |
AJ
|
static long |
AJS
|
static long |
AJSx
|
static long |
ASTRORES
|
static long |
BMP
|
static long |
BSV
|
static long |
CATLIST
|
static long |
CSV
|
static long |
CUBE
|
static long |
FITS
|
static long |
FITSB
|
static long |
FITST
|
static long |
FOV
|
static long |
FOV_ONLY
|
static long |
GIF
|
static long |
GZ
|
static long |
HCOMP
|
static long |
HPX
|
static long |
HUGE
|
static long |
IDHA
|
static long |
IPAC
|
static long |
JPEG
|
static long |
MRCOMP
|
static long |
NOTAVAILABLE
|
static long |
PNG
|
static long |
RGB
|
static long |
RICE
|
static long |
SEXTRA
|
static long |
SIA_SSA
|
static long |
UNKNOWN
|
static long |
VOTABLE
|
static long |
XFITS
|
static long |
XML
|
Constructor Summary | |
---|---|
MyInputStream(java.io.InputStream in)
|
Method Summary | |
---|---|
int |
available()
Interface InputStream, methode available() |
static java.lang.String |
decodeType(long type)
Affichage "en clair" du type de fichier en fonction du cahmp de bits retourne par getType() |
long |
getPos()
Retourne la position du prochain octet qui va être lu dans le flux |
java.lang.String |
gets()
Retourne la prochaine ligne du stream |
long |
getType()
Determine le type de fichier. |
boolean |
isGZ()
Juste pour tester s'il s'agit d'un flux gzipé |
static void |
main(java.lang.String[] args)
|
boolean |
markSupported()
Interface InputStream, methode markSupported() |
int |
read()
Interface InputStream, methode read() LA METHODE EST UN PEU BOEUF CAR JE PASSE PAR UN TABLEAU DE 1 OCTET. |
int |
read(byte[] buf)
Interface InputStream, methode read(byte buf[]) Remplit au mieux le tableau passe en parametre. |
int |
read(byte[] buf,
int offset,
int len)
Interface InputStream, methode read(byte bbuf[],int offset,int len) Remplit au mieux le tableau passe en parametre. |
byte[] |
readFully()
Lecture de la totalite du flux dans un tableau de bytes sans savoir a priori la taille du flux La lecture se fait dans un vecteur de blocs que l'on concatene a la fin de la lecture |
void |
readFully(byte[] buf)
Remplit le tableau passe en parametre d'un nombre precis d'octets. |
void |
readFully(byte[] buf,
int offset,
int len)
Remplit le tableau passe en parametre d'un nombre precis d'octets. |
void |
resetType()
Reset le type courant du flux en ne conservant que GZIP et FITS_EXTENSION. => our analyse des fichiers en FITS EXTENSION |
long |
skip(long n)
Interface InputStream, methode skip() |
MyInputStream |
startRead()
Dans le cas ou le flux peut etre gzippe, il est necessaire de passer par cette methode pour un eventuel "empilement" de l'objet MyInputStream. |
Methods inherited from class java.io.FilterInputStream |
---|
close, mark, reset |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long UNKNOWN
public static final long FITS
public static final long JPEG
public static final long GIF
public static final long MRCOMP
public static final long HCOMP
public static final long GZ
public static final long XML
public static final long ASTRORES
public static final long VOTABLE
public static final long AJ
public static final long AJS
public static final long IDHA
public static final long SIA_SSA
public static final long CSV
public static final long NOTAVAILABLE
public static final long AJSx
public static final long PNG
public static final long XFITS
public static final long FOV
public static final long FOV_ONLY
public static final long CATLIST
public static final long RGB
public static final long BSV
public static final long FITST
public static final long FITSB
public static final long CUBE
public static final long SEXTRA
public static final long HUGE
public static final long AIPSTABLE
public static final long IPAC
public static final long BMP
public static final long RICE
public static final long HPX
Constructor Detail |
---|
public MyInputStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public MyInputStream startRead() throws java.io.IOException
java.io.IOException
public long getPos()
public void resetType()
public boolean isGZ() throws java.io.IOException
java.io.IOException
public long getType() throws java.io.IOException
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
n
- le nombre d'octets a skipper
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf) throws java.io.IOException
read
in class java.io.FilterInputStream
le
- buffer a remplirle
- nombre d'octets effectivement lus
java.io.IOException
public int read(byte[] buf, int offset, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
le
- buffer a rempliroffset
- position dans le bufferlen
- nombre d'octets a lire au mieuxle
- nombre d'octets effectivement lus
java.io.IOException
public void readFully(byte[] buf) throws java.io.IOException
le
- buffer a remplir
java.io.IOException
public void readFully(byte[] buf, int offset, int len) throws java.io.IOException
le
- buffer a rempliroffset
- position dans le bufferlen
- nombre d'octets a lire au mieux
java.io.IOException
public byte[] readFully()
public java.lang.String gets() throws java.io.IOException
java.io.IOException
public static java.lang.String decodeType(long type)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |