/** * Reads a specified number of bytes to form a string. The length of the string (number of characters) is required * to notify when reading should stop. The index is increased the number of characters read. Will use the platform's * default Charset to convert the bytes to string. * * @param size * the length of the string to read. * @return the string read. * @throws IOException * if EOS/EOF is reached before "size" number of bytes are read. */ public String readString(final int size) throws IOException { return readString(size, Charset.defaultCharset()); }
/** * Reads a specified number of bytes to form a string. The length of the string (number of characters) is required * to notify when reading should stop. The index is increased the number of characters read. Will use the platform's * default Charset to convert the bytes to string. * * @param size * the length of the string to read. * @return the string read. * @throws IOException * if EOS/EOF is reached before "size" number of bytes are read. */ public String readString(final int size) throws IOException { return readString(size, Charset.defaultCharset()); }
bis.seek(header.offsetSkins); for (int i = 0; i < header.numSkins; i++) { texNames[i] = bis.readString(64); scale.set(bis.readFloat(), bis.readFloat(), bis.readFloat()); translate.set(bis.readFloat(), bis.readFloat(), bis.readFloat()); final String name = bis.readString(16); final byte[] vertData = new byte[header.numVertices * 4]; bis.readFully(vertData);