Author: fanningpj
Date: Mon Apr 22 10:43:36 2024
New Revision: 1917264

URL: http://svn.apache.org/viewvc?rev=1917264&view=rev
Log:
fix use of forbidden api

Modified:
    
poi/trunk/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java

Modified: 
poi/trunk/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java?rev=1917264&r1=1917263&r2=1917264&view=diff
==============================================================================
--- 
poi/trunk/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java
 (original)
+++ 
poi/trunk/poi-examples/src/test/java/org/apache/poi/examples/hssf/eventusermodel/TestXLS2CSVmra.java
 Mon Apr 22 10:43:36 2024
@@ -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);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to