mirror of
https://github.com/apache/poi.git
synced 2025-02-22 01:55:12 +00:00
fix use of forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
238d002f34
commit
e6a913c3bd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user