Class Util
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.apt.util.Util
Util class that defines helper methods to read class contents with handling of wrong encoding
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequence
getCharContents(FileObject fileObject, boolean ignoreEncodingErrors, byte[] contents, String encoding)
static char[]
getInputStreamAsCharArray(InputStream stream, int length, String encoding)
-
Field Details
-
LINE_SEPARATOR
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getInputStreamAsCharArray
public static char[] getInputStreamAsCharArray(InputStream stream, int length, String encoding) throws IOException- Throws:
IOException
-
getCharContents
public static CharSequence getCharContents(FileObject fileObject, boolean ignoreEncodingErrors, byte[] contents, String encoding) throws IOException- Throws:
IOException
-