Home
last modified time | relevance | path

Searched refs:UTFDataFormatException (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/nio/charset/
DModifiedUtf8.java19 import java.io.UTFDataFormatException;
37 public static long countBytes(String s, boolean shortLength) throws UTFDataFormatException { in countBytes()
56 throw new UTFDataFormatException( in countBytes()
99 public static byte[] encode(String s) throws UTFDataFormatException { in encode()
119 throws UTFDataFormatException { in decode()
140 throw new UTFDataFormatException("unexpected end of input"); in decode()
144 throw new UTFDataFormatException("bad second byte at " + offset); in decode()
155 throw new UTFDataFormatException("unexpected end of input"); in decode()
160 throw new UTFDataFormatException("bad second byte at " + offset); in decode()
166 throw new UTFDataFormatException("bad third byte at " + offset); in decode()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DModifiedUtf8Test.java21 import java.io.UTFDataFormatException;
44 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_unexpectedEndOfStreamAfterC2_throws()
45 } catch(UTFDataFormatException expected) { in test_decode_unexpectedEndOfStreamAfterC2_throws()
55 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_unexpectedEndOfStreamAfterE0_throws()
56 } catch(UTFDataFormatException expected) { in test_decode_unexpectedEndOfStreamAfterE0_throws()
80 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_invalidByte_characterUnknown()
81 } catch (UTFDataFormatException expected) { in test_decode_invalidByte_characterUnknown()
161 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_checkBadSecondByteOfTwo()
162 } catch (UTFDataFormatException expected) { in test_decode_checkBadSecondByteOfTwo()
171 fail("Should throw " + UTFDataFormatException.class.getName()); in test_decode_checkBadSecondByteOfThree()
[all …]
/libcore/ojluni/src/main/java/java/io/
DUTFDataFormatException.java46 class UTFDataFormatException extends IOException { class
53 public UTFDataFormatException() { in UTFDataFormatException() method in UTFDataFormatException
66 public UTFDataFormatException(String s) { in UTFDataFormatException() method in UTFDataFormatException
DDataInputStream.java627 throw new UTFDataFormatException( in readUTF()
631 throw new UTFDataFormatException( in readUTF()
640 throw new UTFDataFormatException( in readUTF()
645 throw new UTFDataFormatException( in readUTF()
653 throw new UTFDataFormatException( in readUTF()
DObjectInputStream.java3261 throw new UTFDataFormatException(); in readUTFSpan()
3272 throw new UTFDataFormatException(); in readUTFSpan()
3280 throw new UTFDataFormatException(); in readUTFSpan()
3293 throw new UTFDataFormatException(); in readUTFSpan()
3328 throw new UTFDataFormatException(); in readUTFChar()
3332 throw new UTFDataFormatException(); in readUTFChar()
3343 throw new UTFDataFormatException(); in readUTFChar()
3348 throw new UTFDataFormatException(); in readUTFChar()
3356 throw new UTFDataFormatException(); in readUTFChar()
DDataOutputStream.java364 throw new UTFDataFormatException( in writeUTF()
DObjectOutputStream.java2264 throw new UTFDataFormatException(); in writeUTF()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DUTFDataFormatExceptionTest.java22 import java.io.UTFDataFormatException;
41 } catch (UTFDataFormatException e) { in test_Constructor()
63 } catch (UTFDataFormatException e) { in test_ConstructorLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/io/
DDataOutputStreamTest.java21 import java.io.UTFDataFormatException;
125 } catch (UTFDataFormatException expected) { in test_writeUTF_too_long()
/libcore/
Dopenjdk_java_files.bp96 "ojluni/src/main/java/java/io/UTFDataFormatException.java",