List of usage examples for java.lang OutOfMemoryError OutOfMemoryError
public OutOfMemoryError(String s)
From source file:org.eclipse.dataset.CompoundByteDataset.java
protected byte[] createArray(final int size) { // PRIM_TYPE byte[] array = null; // PRIM_TYPE try {//from w ww . j a va2 s . c o m array = new byte[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.CompoundDoubleDataset.java
protected double[] createArray(final int size) { // PRIM_TYPE double[] array = null; // PRIM_TYPE try {/*from w w w . j av a 2 s . c o m*/ array = new double[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.CompoundFloatDataset.java
protected float[] createArray(final int size) { // PRIM_TYPE float[] array = null; // PRIM_TYPE try {/*from w w w .ja v a2s . co m*/ array = new float[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.CompoundIntegerDataset.java
protected int[] createArray(final int size) { // PRIM_TYPE int[] array = null; // PRIM_TYPE try {// w w w.j a va 2s .c o m array = new int[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.CompoundLongDataset.java
protected long[] createArray(final int size) { // PRIM_TYPE long[] array = null; // PRIM_TYPE try {// ww w. j a v a 2 s .c om array = new long[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.CompoundShortDataset.java
protected short[] createArray(final int size) { // PRIM_TYPE short[] array = null; // PRIM_TYPE try {/*from w w w .j ava 2 s . c o m*/ array = new short[isize * size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.DoubleDataset.java
protected static double[] createArray(final int size) { // PRIM_TYPE double[] array = null; // PRIM_TYPE try {/*from w w w . j a va2 s.c o m*/ array = new double[size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.FloatDataset.java
protected static float[] createArray(final int size) { // PRIM_TYPE float[] array = null; // PRIM_TYPE try {// w w w . j a v a2s . com array = new float[size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.IntegerDataset.java
protected static int[] createArray(final int size) { // PRIM_TYPE int[] array = null; // PRIM_TYPE try {/* w ww. ja v a 2s. c o m*/ array = new int[size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }
From source file:org.eclipse.dataset.LongDataset.java
protected static long[] createArray(final int size) { // PRIM_TYPE long[] array = null; // PRIM_TYPE try {/* w w w . j a va 2 s .c o m*/ array = new long[size]; // PRIM_TYPE } catch (OutOfMemoryError e) { logger.error("The size of the dataset ({}) that is being created is too large " + "and there is not enough memory to hold it.", size); throw new OutOfMemoryError("The dimensions given are too large, and there is " + "not enough memory available in the Java Virtual Machine"); } return array; }