|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream com.pmstation.spss.reader.SPSSInputStream
public class SPSSInputStream
A bit extended stream to read bytes, strings, doubles and ints from SPSS save file
Constructor Summary | |
---|---|
SPSSInputStream(java.io.InputStream in,
java.lang.String charset)
Instantiates a new SPSS input stream. |
Method Summary | |
---|---|
int |
available()
returns available from underlying stream |
void |
close()
closes underlying stream |
void |
mark(int readlimit)
mark underlying stream |
boolean |
markSupported()
|
int |
read()
read byte from underlying stream |
int |
read(byte[] b)
read b.length bytes from underlying stream |
int |
read(byte[] b,
int off,
int len)
read len bytes from underlying stream storing them at off offset into b array |
double |
readDouble()
Read double from stream. |
float |
readFloat()
Read float. |
int |
readInt()
Read int from underlying stream. |
long |
readLong()
Read long from stream. |
java.lang.String |
readString()
Read string. |
java.lang.String |
readString(int length)
Read string of specified length. |
void |
reset()
resets underlying stream |
long |
skip(long n)
skips n bytes in underlying stream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPSSInputStream(java.io.InputStream in, java.lang.String charset)
in
- underlying streamcharset
- charsetMethod Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public java.lang.String readString(int length) throws java.io.IOException
length
- the length
java.io.IOException
- Signals that an I/O exception has occurred.public java.lang.String readString() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public double readDouble() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public long readLong() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public float readFloat() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |