X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjavajs%2Fapi%2FGenericBinaryDocument.java;fp=src%2Fjavajs%2Fapi%2FGenericBinaryDocument.java;h=3cf47399ca7ffb89d03f68e3957df01e18c603b4;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hp=16d99f89f7729992e4d440bbb95ffd21484dde27;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44;p=jalviewjs.git diff --git a/src/javajs/api/GenericBinaryDocument.java b/src/javajs/api/GenericBinaryDocument.java index 16d99f8..3cf4739 100644 --- a/src/javajs/api/GenericBinaryDocument.java +++ b/src/javajs/api/GenericBinaryDocument.java @@ -1,53 +1,53 @@ -package javajs.api; - -import java.io.BufferedInputStream; -import java.io.DataInputStream; -import java.util.Map; - - -import javajs.util.OC; -import javajs.util.SB; - -public interface GenericBinaryDocument { - - void setStream(GenericZipTools jzt, 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); - - byte readByte() throws Exception; - - int readInt() throws Exception; - - int readIntLE() throws Exception; - - long readLong() throws Exception; - - float readFloat() throws Exception; - - double readDouble() throws Exception; - - short readShort() throws Exception; - - int readUnsignedShort() throws Exception; - - String readString(int i) throws Exception; - - int readByteArray(byte[] b, int off, int len) throws Exception; - - void close(); - - void setOutputChannel(OC out); - -} +package javajs.api; + +import java.io.BufferedInputStream; +import java.io.DataInputStream; +import java.util.Map; + + +import javajs.util.OC; +import javajs.util.SB; + +public interface GenericBinaryDocument { + + void setStream(GenericZipTools jzt, 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); + + byte readByte() throws Exception; + + int readInt() throws Exception; + + int readIntLE() throws Exception; + + long readLong() throws Exception; + + float readFloat() throws Exception; + + double readDouble() throws Exception; + + short readShort() throws Exception; + + int readUnsignedShort() throws Exception; + + String readString(int i) throws Exception; + + int readByteArray(byte[] b, int off, int len) throws Exception; + + void close(); + + void setOutputChannel(OC out); + +}