ISMatTag tag = new ISMatTag(buf); switch (tag.type) { case MatDataTypes.miCOMPRESSED:
/** * Reads Matrix name. * * Modifies <code>buf</code> position. * * @param buf * <code>ByteBuffer</code> * @return name <code>String</code> * @throws IOException * if reading from buffer fails */ private String readName(ByteBuffer buf) throws IOException { String s; ISMatTag tag = new ISMatTag(buf); char[] ac = tag.readToCharArray(); s = new String(ac); return s; }
ISMatTag tag = new ISMatTag(buf); switch (tag.type) { case MatDataTypes.miCOMPRESSED:
ISMatTag tag = new ISMatTag(buf); switch ( tag.type )
ISMatTag tag = new ISMatTag(buf); switch ( tag.type )
ISMatTag tag = new ISMatTag(buf); switch (tag.type) { case MatDataTypes.miCOMPRESSED:
/** * Reads Matrix flags. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return flags int array * @throws IOException if reading from buffer fails */ private int[] readFlags(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] flags = tag.readToIntArray(); return flags; } /**
/** * Reads Matrix dimensions. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return dimensions int array * @throws IOException if reading from buffer fails */ private int[] readDimension(ByteBuffer buf ) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] dims = tag.readToIntArray(); return dims; } /**
/** * Reads Matrix flags. * * Modifies <code>buf</code> position. * * @param buf * <code>ByteBuffer</code> * @return flags int array * @throws IOException * if reading from buffer fails */ private int[] readFlags(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] flags = tag.readToIntArray(); return flags; }
/** * Reads Matrix dimensions. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return dimensions int array * @throws IOException if reading from buffer fails */ private int[] readDimension(ByteBuffer buf ) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] dims = tag.readToIntArray(); return dims; } /**
/** * Reads Matrix dimensions. * * Modifies <code>buf</code> position. * * @param buf * <code>ByteBuffer</code> * @return dimensions int array * @throws IOException * if reading from buffer fails */ private int[] readDimension(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] dims = tag.readToIntArray(); return dims; }
/** * Reads Matrix flags. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return flags int array * @throws IOException if reading from buffer fails */ private int[] readFlags(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] flags = tag.readToIntArray(); return flags; } /**
/** * Reads Matrix name. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return name <code>String</code> * @throws IOException if reading from buffer fails */ private String readName(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); return tag.readToString(); } /**
/** * Reads Matrix name. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return name <code>String</code> * @throws IOException if reading from buffer fails */ private String readName(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); return tag.readToString(); } /**
/** * Reads Matrix dimensions. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return dimensions int array * @throws IOException if reading from buffer fails */ private static int[] readDimension(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] dims = tag.readToIntArray(); return dims; }
/** * Reads Matrix flags. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return flags int array * @throws IOException if reading from buffer fails */ private static int[] readFlags(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] flags = tag.readToIntArray(); return flags; }
/** * Reads Matrix dimensions. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return dimensions int array * @throws IOException if reading from buffer fails */ private static int[] readDimension(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] dims = tag.readToIntArray(); return dims; }
/** * Reads Matrix flags. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return flags int array * @throws IOException if reading from buffer fails */ private static int[] readFlags(ByteBuffer buf) throws IOException { ISMatTag tag = new ISMatTag(buf); int[] flags = tag.readToIntArray(); return flags; }
/** * Reads Matrix name. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return name <code>String</code> * @throws IOException if reading from buffer fails */ private static String readName(ByteBuffer buf, MatFileHeader header) throws IOException { ISMatTag tag = new ISMatTag(buf); return tag.readToString(header.getByteOrder()); }
/** * Reads Matrix name. * * Modifies <code>buf</code> position. * * @param buf <code>ByteBuffer</code> * @return name <code>String</code> * @throws IOException if reading from buffer fails */ private static String readName(ByteBuffer buf, MatFileHeader header) throws IOException { ISMatTag tag = new ISMatTag(buf); return tag.readToString(header.getByteOrder()); }