public StreamCursor(byte[] data) throws IOException {
this(new ByteArrayInputStream(data));
}
public StreamCursor(InputStream source) throws IOException {
this.transport = new StreamTransport(source, new OutputStream() {
public void write(int octet){}
});
this.cursor = new TransportCursor(transport);
this.swap = new byte[1];
}