use of org.apache.poi.hdgf.extractor.VisioTextExtractor in project poi by apache.
the class TestHDGFCore method testUtf16LE.
public void testUtf16LE() throws Exception {
fs = new POIFSFileSystem(_dgTests.openResourceAsStream("Test_Visio-Some_Random_Text.vsd"));
hdgf = new HDGFDiagram(fs);
assertNotNull(hdgf);
textExtractor = new VisioTextExtractor(hdgf);
String text = textExtractor.getText().trim();
assertEquals("text\nView\nTest View\nI am a test view\nSome random text, on a page", text);
}
use of org.apache.poi.hdgf.extractor.VisioTextExtractor in project poi by apache.
the class TestHDGFCore method testV6NonUtf16LE.
public void testV6NonUtf16LE() throws Exception {
fs = new POIFSFileSystem(_dgTests.openResourceAsStream("v6-non-utf16le.vsd"));
hdgf = new HDGFDiagram(fs);
assertNotNull(hdgf);
textExtractor = new VisioTextExtractor(hdgf);
String text = textExtractor.getText().replace("