private static Object[] decodeArray(final DecoderImpl decoder, final int count) { TypeConstructor constructor = decoder.readConstructor(true); return decodeNonPrimitive(decoder, constructor, count); }
@Override public long[] readLongArray() { return (long[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public float[] readFloatArray() { return (float[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public boolean[] readBooleanArray() { return (boolean[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public int[] readIntegerArray() { return (int[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public double[] readDoubleArray() { return (double[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public byte[] readByteArray() { return (byte[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public short[] readShortArray() { return (short[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
private static Object[] decodeArray(final DecoderImpl decoder, final int count) { TypeConstructor constructor = decoder.readConstructor(); return decodeNonPrimitive(constructor, count); }
public Object[] readArray() { return (Object[]) readConstructor().readValue(); }
public boolean[] readBooleanArray() { return (boolean[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
public Object[] readArray() { return (Object[]) readConstructor().readValue(); }
public byte[] readByteArray() { return (byte[]) ((ArrayType.ArrayEncoding)readConstructor()).readValueArray(); }
@Override public void skipValue() { getDecoder().readConstructor().skipValue(); }
@Override public void skipValue() { getDecoder().readConstructor().skipValue(); }
@Override public void skipValue() { getDecoder().readConstructor().skipValue(); }
@Override public void skipValue() { getDecoder().readConstructor().skipValue(); }
@Override public void skipValue() { getDecoder().readConstructor().skipValue(); }
public Object readObject() { TypeConstructor constructor = readConstructor(); if(constructor== null) { throw new DecodeException("Unknown constructor"); } return constructor instanceof ArrayType.ArrayEncoding ? ((ArrayType.ArrayEncoding)constructor).readValueArray() : constructor.readValue(); }
public Object readObject() { TypeConstructor constructor = readConstructor(); if(constructor== null) { throw new DecodeException("Unknown constructor"); } return constructor instanceof ArrayType.ArrayEncoding ? ((ArrayType.ArrayEncoding)constructor).readValueArray() : constructor.readValue(); }