- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
public static TargetInfo loadTargetInfo(final Properties properties, final DirectoryStructure structure) { final String ref = PatchUtils.readRef(properties, Constants.CUMULATIVE); final List<String> patches = PatchUtils.readRefs(properties); return new TargetInfoImpl(properties, ref, patches, structure); }
public static String readRef(final File file) throws IOException { if(! file.exists()) { return Constants.BASE; } final InputStream is = new FileInputStream(file); try { return readRef(is); } finally { safeClose(is); } }
public static TargetInfo loadTargetInfo(final Properties properties, final DirectoryStructure structure) { final String ref = PatchUtils.readRef(properties, Constants.CUMULATIVE); final List<String> patches = PatchUtils.readRefs(properties); return new TargetInfoImpl(properties, ref, patches, structure); }
public static String readRef(final File file) throws IOException { if(! file.exists()) { return Constants.BASE; } final InputStream is = new FileInputStream(file); try { return readRef(is); } finally { safeClose(is); } }
private String getAppliedAt(File patchDir) throws PatchingException { File timestampFile = new File(patchDir, Constants.TIMESTAMP); try { return timestampFile.exists() ? PatchUtils.readRef(timestampFile) : null; } catch (IOException e) { throw new PatchingException(PatchLogger.ROOT_LOGGER.fileIsNotReadable(timestampFile.getAbsolutePath())); } }
private String getAppliedAt(File patchDir) throws PatchingException { File timestampFile = new File(patchDir, Constants.TIMESTAMP); try { return timestampFile.exists() ? PatchUtils.readRef(timestampFile) : null; } catch (IOException e) { throw new PatchingException(PatchLogger.ROOT_LOGGER.fileIsNotReadable(timestampFile.getAbsolutePath())); } }