List of usage examples for org.eclipse.jdt.internal.compiler.util Util bytesToChar
public static char[] bytesToChar(byte[] bytes, String encoding) throws IOException
From source file:org.eclipse.jdt.internal.core.SourceMapper.java
License:Open Source License
private char[] readSource(ZipEntry entry, ZipFile zip, String charSet) { try {//from w w w.j a v a 2 s . c o m byte[] bytes = Util.getZipEntryByteContent(entry, zip); if (bytes != null) { return Util.bytesToChar(bytes, charSet == null ? this.encoding : charSet); } } catch (IOException e) { // ignore } return null; }