org.eclipse.jdt.internal.compiler.apt.util
Class Util
java.lang.Object
org.eclipse.jdt.internal.compiler.apt.util.Util
public final class Util
- extends Object
Util class that defines helper methods to read class contents with handling of wrong encoding
Constructor Summary |
Util()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_SEPARATOR
public static String LINE_SEPARATOR
Util
public Util()
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
Copyright © 2012. All Rights Reserved.