From 1071d93bbc0f2106ac63b5cb185e9bb73478ca5a Mon Sep 17 00:00:00 2001 From: Joshua Barr Date: Mon, 25 Nov 2024 16:14:30 -0800 Subject: [PATCH] fixup: todo broken pipe --- .../src/main/java/com/amazon/tools/cli/SimpleIonCli.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ion-java-cli/src/main/java/com/amazon/tools/cli/SimpleIonCli.java b/ion-java-cli/src/main/java/com/amazon/tools/cli/SimpleIonCli.java index d6ddf6f53..694e15850 100644 --- a/ion-java-cli/src/main/java/com/amazon/tools/cli/SimpleIonCli.java +++ b/ion-java-cli/src/main/java/com/amazon/tools/cli/SimpleIonCli.java @@ -62,6 +62,7 @@ int cat( @Parameters(paramLabel = "FILE") File... files) { return CommandLine.ExitCode.USAGE; } + //TODO: Handle stream cutoff- java.io.IOException: Broken pipe //TODO: This is not resilient to problems with a single file. Should it be? try (InputStream in = getInputStream(files); IonReader reader = IonReaderBuilder.standard().build(in);