< prev index next >

src/java.base/share/classes/sun/text/normalizer/ICUBinary.java

Print this page

        

*** 63,73 **** // public methods -------------------------------------------------------- /** * <p>ICU data header reader method. * Takes a ICU generated big-endian input stream, parse the ICU standard ! * file header and authenticates them.</p> * <p>Header format: * <ul> * <li> Header size (char) * <li> Magic number 1 (byte) * <li> Magic number 2 (byte) --- 63,73 ---- // public methods -------------------------------------------------------- /** * <p>ICU data header reader method. * Takes a ICU generated big-endian input stream, parse the ICU standard ! * file header and authenticates them. * <p>Header format: * <ul> * <li> Header size (char) * <li> Magic number 1 (byte) * <li> Magic number 2 (byte)
*** 82,92 **** * [2] milli [3] micro * <li> Data version (4 bytes), the change version of the ICU data * [0] major [1] minor [2] milli [3] micro * <li> Unicode version (4 bytes) this ICU is based on. * </ul> ! * </p> * <p> * Example of use:<br> * <pre> * try { * FileInputStream input = new FileInputStream(filename); --- 82,92 ---- * [2] milli [3] micro * <li> Data version (4 bytes), the change version of the ICU data * [0] major [1] minor [2] milli [3] micro * <li> Unicode version (4 bytes) this ICU is based on. * </ul> ! * * <p> * Example of use:<br> * <pre> * try { * FileInputStream input = new FileInputStream(filename);
*** 96,106 **** * } * } catch (IOException e) { * System.out.println("This is not a ICU data file"); * } * </pre> ! * </p> * @param inputStream input stream that contains the ICU data header * @param dataFormatIDExpected Data format expected. An array of 4 bytes * information about the data format. * E.g. data format ID 1.2.3.4. will became an array of * {1, 2, 3, 4} --- 96,106 ---- * } * } catch (IOException e) { * System.out.println("This is not a ICU data file"); * } * </pre> ! * * @param inputStream input stream that contains the ICU data header * @param dataFormatIDExpected Data format expected. An array of 4 bytes * information about the data format. * E.g. data format ID 1.2.3.4. will became an array of * {1, 2, 3, 4}
< prev index next >