Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of
[jalview.git] / unused / javajs / api / GenericBinaryDocument.java
1 package javajs.api;
2
3 import java.io.BufferedInputStream;
4 import java.io.DataInputStream;
5 import java.io.InputStream;
6 import java.util.Map;
7
8
9 import javajs.util.SB;
10
11 public interface GenericBinaryDocument extends GenericBinaryDocumentReader {
12
13   GenericBinaryDocument setStream(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   void setOutputChannel(GenericOutputChannel out);
30
31   InputStream getInputStream();
32
33   int readIntLE() throws Exception;
34
35   int readByteArray(byte[] b, int off, int len) throws Exception;
36
37
38   void close();
39
40 }