public String getEncodingName() { String encName = options.get(Option.ENCODING); if (encName == null) return getDefaultEncodingName(); else return encName; }
protected static JavaFileObject.Kind getKind(String filename) { return BaseFileManager.getKind(filename); }
/** * Set the context for JavacPathFileManager. */ @Override public void setContext(Context context) { super.setContext(context); }
public CharBuffer decode(ByteBuffer inbuf, boolean ignoreEncodingErrors) { String encodingName = getEncodingName(); CharsetDecoder decoder; try { decoder = getDecoder(encodingName, ignoreEncodingErrors); } catch (IllegalCharsetNameException e) { log.error("unsupported.encoding", encodingName); if (!getSource().allowEncodingErrors()) { log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding",
protected BaseFileManager(Charset charset) { this.charset = charset; byteBufferCache = new ByteBufferCache(); locations = createLocations(); }
if (options.isUnset(XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option)) { if (fileManager instanceof BaseFileManager) { if (((BaseFileManager) fileManager).isDefaultBootClassPath()) log.warning(LintCategory.OPTIONS, "source.no.bootclasspath", source.name);
public CharBuffer decode(ByteBuffer inbuf, boolean ignoreEncodingErrors) { String encodingName = getEncodingName(); CharsetDecoder decoder; try { decoder = getDecoder(encodingName, ignoreEncodingErrors); } catch (IllegalCharsetNameException e) { log.error("unsupported.encoding", encodingName); if (!getSource().allowEncodingErrors()) { log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding",
protected BaseFileManager(Charset charset) { this.charset = charset; byteBufferCache = new ByteBufferCache(); locations = createLocations(); }
if (options.isUnset(XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option)) { if (fileManager instanceof BaseFileManager) { if (((BaseFileManager) fileManager).isDefaultBootClassPath()) log.warning(LintCategory.OPTIONS, "source.no.bootclasspath", source.name);
public CharBuffer decode(ByteBuffer inbuf, boolean ignoreEncodingErrors) { String encodingName = getEncodingName(); CharsetDecoder decoder; try { decoder = getDecoder(encodingName, ignoreEncodingErrors); } catch (IllegalCharsetNameException e) { log.error("unsupported.encoding", encodingName); if (!getSource().allowEncodingErrors()) { log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding",
protected static JavaFileObject.Kind getKind(String filename) { return BaseFileManager.getKind(filename); }
/** * Set the context for JavacPathFileManager. */ @Override public void setContext(Context context) { super.setContext(context); }
public String getEncodingName() { String encName = options.get(Option.ENCODING); if (encName == null) return getDefaultEncodingName(); else return encName; }
protected static JavaFileObject.Kind getKind(String filename) { return BaseFileManager.getKind(filename); }
/** * Set the context for JavacFileManager. */ @Override public void setContext(Context context) { super.setContext(context); if (paths == null) { paths = Paths.instance(context); } else { // Reuse the Paths object as it stores the locations that // have been set with setLocation, etc. paths.setContext(context); } fsInfo = FSInfo.instance(context); useZipFileIndex = System.getProperty("useJavaUtilZip") == null;// TODO: options.get("useJavaUtilZip") == null; mmappedIO = options.get("mmappedIO") != null; ignoreSymbolFile = options.get("ignore.symbol.file") != null; String sf = options.get("sortFiles"); if (sf != null) { sortFiles = (sf.equals("reverse") ? SortFiles.REVERSE : SortFiles.FORWARD); } }
public String getEncodingName() { String encName = options.get(OptionName.ENCODING); if (encName == null) return getDefaultEncodingName(); else return encName; }
@Override public Kind getKind() { return BaseFileManager.getKind(path.getFileName().toString()); }
/** * Set the context for JavacFileManager. */ @Override public void setContext(Context context) { super.setContext(context); fsInfo = FSInfo.instance(context); contextUseOptimizedZip = options.getBoolean("useOptimizedZip", true); if (contextUseOptimizedZip) zipFileIndexCache = ZipFileIndexCache.getSharedInstance(); mmappedIO = options.isSet("mmappedIO"); symbolFileEnabled = !options.isSet("ignore.symbol.file"); String sf = options.get("sortFiles"); if (sf != null) { sortFiles = (sf.equals("reverse") ? SortFiles.REVERSE : SortFiles.FORWARD); } }
@Override public Kind getKind() { return BaseFileManager.getKind(path.getFileName().toString()); }
/** * Set the context for JavacFileManager. */ @Override public void setContext(Context context) { super.setContext(context); fsInfo = FSInfo.instance(context); contextUseOptimizedZip = options.getBoolean("useOptimizedZip", true); if (contextUseOptimizedZip) zipFileIndexCache = ZipFileIndexCache.getSharedInstance(); mmappedIO = options.isSet("mmappedIO"); symbolFileEnabled = !options.isSet("ignore.symbol.file"); String sf = options.get("sortFiles"); if (sf != null) { sortFiles = (sf.equals("reverse") ? SortFiles.REVERSE : SortFiles.FORWARD); } }