< prev index next >

src/java.base/share/classes/jdk/internal/jimage/ImageStream.java

Print this page

        

*** 114,124 **** public int get() { return buffer.get() & 0xFF; } ! public void get(byte bytes[], int offset, int size) { buffer.get(bytes, offset, size); } public int getShort() { return buffer.getShort(); --- 114,124 ---- public int get() { return buffer.get() & 0xFF; } ! public void get(byte[] bytes, int offset, int size) { buffer.get(bytes, offset, size); } public int getShort() { return buffer.getShort();
*** 141,151 **** public ImageStream put(int byt) { return put((byte)byt); } ! public ImageStream put(byte bytes[], int offset, int size) { ensure(size); buffer.put(bytes, offset, size); return this; } --- 141,151 ---- public ImageStream put(int byt) { return put((byte)byt); } ! public ImageStream put(byte[] bytes, int offset, int size) { ensure(size); buffer.put(bytes, offset, size); return this; }
< prev index next >