Searched refs:utflen (Results 1 - 5 of 5) sorted by relevance
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | DataOutputStream.java | 348 int utflen = 0; 355 utflen++; 357 utflen += 3; 359 utflen += 2; 363 if (utflen > 65535) 365 "encoded string too long: " + utflen + " bytes"); 370 if(dos.bytearr == null || (dos.bytearr.length < (utflen+2))) 371 dos.bytearr = new byte[(utflen*2) + 2]; 374 bytearr = new byte[utflen+2]; 377 bytearr[count++] = (byte) ((utflen >>> [all...] |
H A D | DataInputStream.java | 589 int utflen = in.readUnsignedShort(); 594 if (dis.bytearr.length < utflen){ 595 dis.bytearr = new byte[utflen*2]; 596 dis.chararr = new char[utflen*2]; 601 bytearr = new byte[utflen]; 602 chararr = new char[utflen]; 609 in.readFully(bytearr, 0, utflen); 611 while (count < utflen) { 618 while (count < utflen) { 629 if (count > utflen) [all...] |
H A D | ObjectOutputStream.java | 1300 long utflen = bout.getUTFLength(str); 1301 if (utflen <= 0xFFFF) { 1303 bout.writeUTF(str, utflen); 1306 bout.writeLongUTF(str, utflen); 2130 long utflen = 0; 2137 utflen++; 2139 utflen += 3; 2141 utflen += 2; 2146 return utflen; 2155 void writeUTF(String s, long utflen) throw argument 2180 writeLongUTF(String s, long utflen) argument [all...] |
H A D | ObjectInputStream.java | 3039 * utflen bytes. 3041 private String readUTFBody(long utflen) throws IOException { argument 3047 while (utflen > 0) { 3049 if (avail >= 3 || (long) avail == utflen) { 3050 utflen -= readUTFSpan(sbuf, utflen); 3054 utflen -= readUTFChar(sbuf, utflen); 3061 end = (int) Math.min(MAX_BLOCK_SIZE, utflen); 3073 * consuming no more than utflen byte 3076 readUTFSpan(StringBuilder sbuf, long utflen) argument 3153 readUTFChar(StringBuilder sbuf, long utflen) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | ImageOutputStreamImpl.java | 161 int utflen = 0; 170 utflen++; 172 utflen += 3; 174 utflen += 2; 178 if (utflen > 65535) { 179 throw new UTFDataFormatException("utflen > 65536!"); 182 byte[] b = new byte[utflen+2]; 183 b[boff++] = (byte) ((utflen >>> 8) & 0xFF); 184 b[boff++] = (byte) ((utflen >>> 0) & 0xFF); 198 write(b, 0, utflen [all...] |
Completed in 404 milliseconds