- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ArrayList a =
new ArrayList<String>()
new ArrayList()
new ArrayList<Object>()
- Smart code suggestions by Codota
}
public static void untar(Path outputDirectory, Path inputTarFile) throws IOException { try (FileInputStream fileInputStream = new FileInputStream(inputTarFile.toFile())) { untar(outputDirectory, fileInputStream); } }
public static void untar(Path outputDirectory, Path inputTarFile) throws IOException { try (FileInputStream fileInputStream = new FileInputStream(inputTarFile.toFile())) { untar(outputDirectory, fileInputStream); } }
private WindupExecution deserializeStatusUpdateFromStream(StreamMessage streamMessage, WindupExecution lastStatusFromDB) { // this is a results message with final result contents, untar the results try { Path outputPath = Paths.get(lastStatusFromDB.getOutputPath()); Path tempFile = outputPath.resolve("report_files.tar"); streamMessage.setObjectProperty(AMQConstants.AMQ_LARGE_MESSAGE_SAVESTREAM_PROPERTY, new FileOutputStream(tempFile.toFile())); TarUtil.untar(outputPath, tempFile); } catch (Exception e) { LOG.log(Level.SEVERE, "Error handling status result with contents due to: " + e.getMessage(), e); } return lastStatusFromDB; }