org.aspectj.org.eclipse.jdt.internal.compiler.apt.util
Class Util
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.apt.util.Util
public final class Util
- extends java.lang.Object
Util class that defines helper methods to read class contents with handling of wrong encoding
|
Constructor Summary |
Util()
|
|
Method Summary |
static java.lang.CharSequence |
getCharContents(javax.tools.FileObject fileObject,
boolean ignoreEncodingErrors,
byte[] contents,
java.lang.String encoding)
|
static char[] |
getInputStreamAsCharArray(java.io.InputStream stream,
int length,
java.lang.String encoding)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_SEPARATOR
public static java.lang.String LINE_SEPARATOR
Util
public Util()
getInputStreamAsCharArray
public static char[] getInputStreamAsCharArray(java.io.InputStream stream,
int length,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
getCharContents
public static java.lang.CharSequence getCharContents(javax.tools.FileObject fileObject,
boolean ignoreEncodingErrors,
byte[] contents,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException