public class FiscalSocket
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FiscalSocket.Listener |
Constructor and Description |
---|
FiscalSocket(java.io.InputStream in,
java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
void |
flush() |
void |
read(byte[] buf,
int offset,
int len,
int timeout) |
int |
read(int timeout) |
byte[] |
read(int bytes,
int timeout) |
static void |
setDebugLevel(java.util.logging.Level level) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public FiscalSocket(java.io.InputStream in, java.io.OutputStream out)
in
- out
- public static void setDebugLevel(java.util.logging.Level level)
level
- public void close()
public void write(int b) throws java.io.IOException
b
- java.io.IOException
public void write(byte[] b) throws java.io.IOException
b
- java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
b
- off
- len
- java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void clear() throws java.io.IOException
java.io.IOException
public int read(int timeout) throws java.io.IOException
timeout
- java.io.IOException
public byte[] read(int bytes, int timeout) throws java.io.IOException
bytes
- timeout
- java.io.IOException
public void read(byte[] buf, int offset, int len, int timeout) throws java.io.IOException
buf
- offset
- len
- timeout
- java.io.IOException