Package net.razorvine.pickle.objects
Class ArrayConstructor
- java.lang.Object
-
- net.razorvine.pickle.objects.ArrayConstructor
-
- All Implemented Interfaces:
IObjectConstructor
public class ArrayConstructor extends java.lang.Object implements IObjectConstructor
Creates arrays of objects. Returns a primitive type array such as int[] if the objects are ints, etc. Returns an ArrayList- Author:
- Irmen de Jong (irmen@razorvine.net)
-
-
Constructor Summary
Constructors Constructor Description ArrayConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconstruct(char typecode, int machinecode, byte[] data)Create an object based on machine code typejava.lang.Objectconstruct(java.lang.Object[] args)Create an object.protected char[]constructCharArrayUTF16(int machinecode, byte[] data)protected char[]constructCharArrayUTF32(int machinecode, byte[] data)protected double[]constructDoubleArray(int machinecode, byte[] data)protected float[]constructFloatArray(int machinecode, byte[] data)protected int[]constructIntArrayFromInt32(int machinecode, byte[] data)protected int[]constructIntArrayFromUShort(int machinecode, byte[] data)protected long[]constructLongArrayFromInt64(int machinecode, byte[] data)protected long[]constructLongArrayFromUInt32(int machinecode, byte[] data)protected long[]constructLongArrayFromUInt64(int machinecode, byte[] data)protected short[]constructShortArrayFromUByte(byte[] data)protected short[]constructShortArraySigned(int machinecode, byte[] data)
-
-
-
Method Detail
-
construct
public java.lang.Object construct(java.lang.Object[] args) throws PickleExceptionDescription copied from interface:IObjectConstructorCreate an object. Use the given args as parameters for the constructor.- Specified by:
constructin interfaceIObjectConstructor- Throws:
PickleException
-
construct
public java.lang.Object construct(char typecode, int machinecode, byte[] data) throws PickleExceptionCreate an object based on machine code type- Throws:
PickleException
-
constructIntArrayFromInt32
protected int[] constructIntArrayFromInt32(int machinecode, byte[] data)
-
constructLongArrayFromUInt32
protected long[] constructLongArrayFromUInt32(int machinecode, byte[] data)
-
constructLongArrayFromUInt64
protected long[] constructLongArrayFromUInt64(int machinecode, byte[] data)
-
constructLongArrayFromInt64
protected long[] constructLongArrayFromInt64(int machinecode, byte[] data)
-
constructDoubleArray
protected double[] constructDoubleArray(int machinecode, byte[] data)
-
constructFloatArray
protected float[] constructFloatArray(int machinecode, byte[] data)
-
constructIntArrayFromUShort
protected int[] constructIntArrayFromUShort(int machinecode, byte[] data)
-
constructShortArraySigned
protected short[] constructShortArraySigned(int machinecode, byte[] data)
-
constructShortArrayFromUByte
protected short[] constructShortArrayFromUByte(byte[] data)
-
constructCharArrayUTF32
protected char[] constructCharArrayUTF32(int machinecode, byte[] data)
-
constructCharArrayUTF16
protected char[] constructCharArrayUTF16(int machinecode, byte[] data)
-
-