Home | History | Annotate | Download | only in binary

Lines Matching refs:Byte

64     protected HashMap<Byte, Object> fieldData;
74 public void setContent(byte[] content, int start, int limit) {
75 fieldData = new HashMap<Byte, Object>();
77 byte alias = content[index];
82 byte type = cObj.aliasFields.get(alias).type;
102 case BinaryClassField.BYTE: {
256 "setContent(byte[] content)", "Exception", e);
296 public byte readByte(String name, byte defVal) throws IOException {
300 return ((Byte) fieldData.get(field.alias)).byteValue();
303 public byte[] readByteArray(String name, byte[] defVal) throws IOException {
307 return (byte[]) fieldData.get(field.alias);
310 public byte[][] readByteArray2D(String name, byte[][] defVal)
315 return (byte[][]) fieldData.get(field.alias);
746 // byte primitive
748 protected byte readByte(byte[] content) throws IOException {
749 byte value = content[index];
754 protected byte readByteForBuffer(byte[] content) throws IOException {
755 byte value = content[index];
760 protected byte[] readByteArray(byte[] content) throws IOException {
764 byte[] value = new byte[length];
770 protected byte[][] readByteArray2D(byte[] content) throws IOException {
774 byte[][] value = new byte[length][];
782 protected int readIntForBuffer(byte[] content){
791 protected int readInt(byte[] content) throws IOException {
792 byte[] bytes = inflateFrom(content, index);
802 protected int[] readIntArray(byte[] content) throws IOException {
812 protected int[][] readIntArray2D(byte[] content) throws IOException {
824 protected float readFloat(byte[] content) throws IOException {
830 protected float readFloatForBuffer(byte[] content) throws IOException {
835 protected float[] readFloatArray(byte
845 protected float[][] readFloatArray2D(byte[] content) throws IOException {
857 protected double readDouble(byte[] content) throws IOException {
863 protected double[] readDoubleArray(byte[] content) throws IOException {
873 protected double[][] readDoubleArray2D(byte[] content) throws IOException {
885 protected long readLong(byte[] content) throws IOException {
886 byte[] bytes = inflateFrom(content, index);
893 protected long[] readLongArray(byte[] content) throws IOException {
903 protected long[][] readLongArray2D(byte[] content) throws IOException {
915 protected short readShort(byte[] content) throws IOException {
921 protected short readShortForBuffer(byte[] content) throws IOException {
928 protected short[] readShortArray(byte[] content) throws IOException {
938 protected short[][] readShortArray2D(byte[] content) throws IOException {
950 protected boolean readBoolean(byte[] content) throws IOException {
956 protected boolean[] readBooleanArray(byte[] content) throws IOException {
966 protected boolean[][] readBooleanArray2D(byte[] content) throws IOException {
982 * A UTF-8 codepoint can be 1, 2 or 3 bytes long. How long a codepint is can be told by reading the first byte:
983 * b < 0x80, 1 byte
988 * if you start reading at a random point in a UTF-8 byte stream. That's why UTF-8 requires for the second and third byte of
992 private final static int UTF8_START = 0; // next byte should be the start of a new
993 private final static int UTF8_2BYTE = 2; // next byte should be the second byte of a 2 byte codepoint
994 private final static int UTF8_3BYTE_1 = 3; // next byte should be the second byte of a 3 byte codepoint
995 private final static int UTF8_3BYTE_2 = 4; // next byte should be the third byte of a 3 byte codepoint
999 protected String readString(byte[] content) throws IOException {
1007 * We'll transfer the bytes into a seperate byte array.
1008 * While we do that we'll take the opportunity to check if the byte data is valid UTF-8.
1015 * for UTF-8 and the other 1 byte codepoint encodings (espc true for numbers and regular letters of the alphabet). So these
1019 * a different matter and UTF-8 and the 1 byte encoding greatly will differ, as well as most 1 byte encodings relative to each
1022 * It is impossible to detect which one-byte encoding is used. Since UTF8 and practically all 1-byte encodings share the most
1023 * used characters (the "none-high" ones) parsing them will give the same result. However, not all byte sequences are legal in
1026 * By this method we detect all use of 1 byte encoding if they:
1035 byte[] bytes = new byte[length];
1040 b = (int) bytes[x] & 0xFF; // unsign our byte
1101 protected String[] readStringArray(byte[] content) throws IOException {
1111 protected String[][] readStringArray2D(byte[] content) throws IOException {
1123 protected BitSet readBitSet(byte[] content) throws IOException {
1135 protected static byte[] inflateFrom(byte[] contents, int index) {
1136 byte firstByte = contents[index];
1142 return new byte[0];
1144 byte[] rVal = new byte[firstByte];
1153 protected ID readSavable(byte[] content) throws IOException {
1164 protected ID[] readSavableArray(byte[] content) throws IOException {
1175 protected ID[][] readSavableArray2D(byte[] content) throws IOException {
1186 protected ID[][][] readSavableArray3D(byte[] content) throws IOException {
1199 protected ID[][] readSavableMap(byte[] content) throws IOException {
1210 protected StringIDMap readStringSavableMap(byte[] content) throws IOException {
1222 protected IntIDMap readIntSavableMap(byte[] content) throws IOException {
1237 protected ArrayList<FloatBuffer> readFloatBufferArrayList(byte[] content)
1252 protected ArrayList<ByteBuffer> readByteBufferArrayList(byte[] content)
1268 protected FloatBuffer readFloatBuffer(byte[] content) throws IOException {
1290 protected IntBuffer readIntBuffer(byte[] content) throws IOException {
1310 // byte buffer
1312 protected ByteBuffer readByteBuffer(byte[] content) throws IOException {
1334 protected ShortBuffer readShortBuffer(byte[] content) throws IOException {