X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=unused%2Fjavajs%2Fapi%2FGenericBinaryDocument.java;fp=unused%2Fjavajs%2Fapi%2FGenericBinaryDocument.java;h=823bd2a7d6ef589a45849ea403d94287cbba7aad;hb=4f30214e8098748469c6a4269ac2ed6c5750e4b0;hp=0000000000000000000000000000000000000000;hpb=9dabc02511e3a334a5749a504f57f69d6c9017bd;p=jalview.git diff --git a/unused/javajs/api/GenericBinaryDocument.java b/unused/javajs/api/GenericBinaryDocument.java new file mode 100644 index 0000000..823bd2a --- /dev/null +++ b/unused/javajs/api/GenericBinaryDocument.java @@ -0,0 +1,40 @@ +package javajs.api; + +import java.io.BufferedInputStream; +import java.io.DataInputStream; +import java.io.InputStream; +import java.util.Map; + + +import javajs.util.SB; + +public interface GenericBinaryDocument extends GenericBinaryDocumentReader { + + GenericBinaryDocument setStream(BufferedInputStream bis, boolean isBigEndian); + + void setStreamData(DataInputStream dataInputStream, boolean isBigEndian); + + long getPosition(); + + SB getAllDataFiles(String binaryFileList, String firstFile); + + void getAllDataMapped(String replace, String string, Map fileData); + + int swapBytesI(int nx); + + short swapBytesS(short s); + + void seek(long i); + + void setOutputChannel(GenericOutputChannel out); + + InputStream getInputStream(); + + int readIntLE() throws Exception; + + int readByteArray(byte[] b, int off, int len) throws Exception; + + + void close(); + +}