JAL-1807 Bob's first commit -- Applet loaded; needs image
[jalview.git] / src / javajs / api / GenericBinaryDocument.java
1 package javajs.api;
2
3 import java.io.BufferedInputStream;
4 import java.io.DataInputStream;
5 import java.util.Map;
6
7
8 import javajs.util.OC;
9 import javajs.util.SB;
10
11 public interface GenericBinaryDocument {
12
13   void setStream(GenericZipTools jzt, BufferedInputStream bis, boolean isBigEndian);
14
15   void setStreamData(DataInputStream dataInputStream, boolean isBigEndian);
16
17   long getPosition();
18
19   SB getAllDataFiles(String binaryFileList, String firstFile);
20
21   void getAllDataMapped(String replace, String string, Map<String, String> fileData);
22
23   int swapBytesI(int nx);
24
25   short swapBytesS(short s);
26
27   void seek(long i);
28
29   byte readByte() throws Exception;
30
31   int readInt() throws Exception;
32
33   int readIntLE() throws Exception;
34
35   long readLong() throws Exception;
36
37   float readFloat() throws Exception;
38
39   double readDouble() throws Exception;
40
41   short readShort() throws Exception;
42
43   int readUnsignedShort() throws Exception;
44
45   String readString(int i) throws Exception;
46
47   int readByteArray(byte[] b, int off, int len) throws Exception;
48
49   void close();
50
51   void setOutputChannel(OC out);
52
53 }