Package com.oracle.truffle.api.source
Interface BytesDecoder
-
- All Known Implementing Classes:
BytesDecoder.UTF8BytesDecoder
public interface BytesDecoderFor a language where strings do not map into Java strings, provides utilities to find line endings and to decode raw bytes into an approximate representation for tools to display.See
Source.fromBytes(byte[], java.lang.String, com.oracle.truffle.api.source.BytesDecoder).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBytesDecoder.LineMarkerstatic classBytesDecoder.UTF8BytesDecoder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringdecode(byte[] bytes, int byteIndex, int length)voiddecodeLines(byte[] bytes, int byteIndex, int length, BytesDecoder.LineMarker lineMarker)
-
-
-
Method Detail
-
decode
java.lang.String decode(byte[] bytes, int byteIndex, int length)
-
decodeLines
void decodeLines(byte[] bytes, int byteIndex, int length, BytesDecoder.LineMarker lineMarker)
-
-