diff options
author | PJ Fanning <fanningpj@apache.org> | 2024-04-22 10:43:36 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2024-04-22 10:43:36 +0000 |
commit | e6a913c3bde820acec7230aba8888140727348f4 (patch) | |
tree | 951ea56e1308ecdfe5df0e310b2f428b86d201da /poi-examples | |
parent | 238d002f34d507a765fb7be1c9a24c9ddc93d828 (diff) | |
download | poi-e6a913c3bde820acec7230aba8888140727348f4.tar.gz poi-e6a913c3bde820acec7230aba8888140727348f4.zip |
fix use of forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917264 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples')
-rw-r--r-- | poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java b/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java index f6cbbc4d67..c5d9edbf54 100644 --- a/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java +++ b/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java @@ -44,7 +44,7 @@ class TestXLS2CSVmra { @Test void testProcess() throws IOException { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(outStream); + PrintStream out = new PrintStream(outStream, false, StandardCharsets.UTF_8.name()); XLS2CSVmra cvs = new XLS2CSVmra( new POIFSFileSystem(new FileInputStream(HSSFTestDataSamples.getSampleFile("SampleSS.xls").getAbsolutePath())), out, -1); @@ -75,7 +75,7 @@ class TestXLS2CSVmra { @Test void testProcessNumberRecord() throws IOException { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(outStream); + PrintStream out = new PrintStream(outStream, false, StandardCharsets.UTF_8.name()); XLS2CSVmra cvs = new XLS2CSVmra( new POIFSFileSystem(new FileInputStream(HSSFTestDataSamples.getSampleFile("empty.xls").getAbsolutePath())), out, -1); |