Ejemplo n.º 1
0
 private static void printOne_Char(RAMReader arrayReader) {
   try {
     System.out.println("One char: " + arrayReader.readChar());
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
Ejemplo n.º 2
0
 private static void printOne_Int(RAMReader arrayReader) {
   try {
     //				for (int i=0; i<4; i++)
     System.out.println("One int: " + arrayReader.readInt());
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
Ejemplo n.º 3
0
 private static void printAll_Chars(char[] booleanArray, RAMReader arrayReader) {
   for (int i = 0; i < Const.NUM_BYTES_IN_ONE_CHAR * booleanArray.length; i++)
     try {
       System.out.println("One byte from char: " + arrayReader.readByte());
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
 }
Ejemplo n.º 4
0
 private static void printAll_Doubles(double[] doubleArray, RAMReader arrayReader) {
   for (int i = 0; i < Const.NUM_BYTES_IN_ONE_DOUBLE * doubleArray.length; i++)
     try {
       System.out.println("One byte from double: " + arrayReader.readByte());
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
 }
Ejemplo n.º 5
0
 private static void printAll_Longs(long[] longArray, RAMReader arrayReader) {
   for (int i = 0; i < Const.NUM_BYTES_IN_ONE_LONG * longArray.length; i++)
     try {
       System.out.println("One byte from long: " + arrayReader.readByte());
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
 }
Ejemplo n.º 6
0
 private static void printAll_Shorts(short[] shortArray, RAMReader arrayReader) {
   for (int i = 0; i < Const.NUM_BYTES_IN_ONE_SHORT * shortArray.length; i++)
     try {
       System.out.println("One byte from short: " + arrayReader.readByte());
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
 }