public class SpssInputStream extends Object
| Constructor and Description |
|---|
SpssInputStream(InputStream is) |
SpssInputStream(InputStream is,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
DataInputStream |
getFile() |
boolean |
isNeedToFlipBytes() |
byte[] |
readBytes(int count) |
double |
readDouble() |
int |
readInt() |
int |
readRawInt() |
int |
readUnsignedByte() |
void |
setFile(DataInputStream file) |
void |
setNeedToFlipBytes(boolean needToFlipBytes) |
void |
skipBytes(int count) |
String |
stringFromBytes(byte[] bytes)
Encodes a series of bytes into a character stream, taking
into account the datafile's character set, if specified.
|
public SpssInputStream(InputStream is, Charset charset)
public SpssInputStream(InputStream is)
public DataInputStream getFile()
public void setFile(DataInputStream file)
public boolean isNeedToFlipBytes()
public void setNeedToFlipBytes(boolean needToFlipBytes)
public byte[] readBytes(int count)
throws IOException
count - Number of bytesIOException - If the EOF is reached before the specified number of bytes could be readpublic int readRawInt()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic int readUnsignedByte()
throws IOException
IOExceptionpublic void skipBytes(int count)
throws IOException
IOExceptionpublic String stringFromBytes(byte[] bytes)
Copyright © 2019 BeDataDriven. All rights reserved.