Home
last modified time | relevance | path

Searched refs:escapeBytes (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormatEscaper.java52 static String escapeBytes(final ByteSequence input) { in escapeBytes() method in TextFormatEscaper
93 static String escapeBytes(final ByteString input) { in escapeBytes() method in TextFormatEscaper
94 return escapeBytes(new ByteSequence() { in escapeBytes()
109 static String escapeBytes(final byte[] input) {
110 return escapeBytes(new ByteSequence() {
128 return escapeBytes(ByteString.copyFromUtf8(input));
DTextFormat.java276 generator.print(escapeBytes((ByteString) value)); in printUnknownFieldValue()
437 generator.print(escapeBytes((ByteString) value)); in printFieldValue()
439 generator.print(escapeBytes((byte[]) value)); in printFieldValue()
1783 public static String escapeBytes(ByteString input) { in escapeBytes() method in TextFormat
1784 return TextFormatEscaper.escapeBytes(input); in escapeBytes()
1790 public static String escapeBytes(byte[] input) { in escapeBytes() method in TextFormat
1791 return TextFormatEscaper.escapeBytes(input); in escapeBytes()
1898 return escapeBytes(ByteString.copyFromUtf8(input)); in escapeText()
DMessageLiteToString.java214 buffer.append(": \"").append(TextFormatEscaper.escapeBytes((ByteString) object)).append('"'); in printField()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java561 TextFormat.escapeBytes(bytes("\0\001\007\b\f\n\r\t\013\\\'\"\177"))); in testEscape()
575 TextFormat.escapeBytes(bytes("hello"))); in testEscape()
586 TextFormat.escapeBytes(bytes(0xe1, 0x88, 0xb4))); in testEscape()