whitespace (3 spaces to tab)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c3833b5ce7
commit
d77a3f9058
@ -61,9 +61,9 @@ public final class HDGFDiagram extends POIDocument {
|
|||||||
public HDGFDiagram(POIFSFileSystem fs) throws IOException {
|
public HDGFDiagram(POIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
public HDGFDiagram(NPOIFSFileSystem fs) throws IOException {
|
public HDGFDiagram(NPOIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link #HDGFDiagram(DirectoryNode)} instead
|
* @deprecated Use {@link #HDGFDiagram(DirectoryNode)} instead
|
||||||
*/
|
*/
|
||||||
@ -171,7 +171,7 @@ public final class HDGFDiagram extends POIDocument {
|
|||||||
* For testing only
|
* For testing only
|
||||||
*/
|
*/
|
||||||
public static void main(String args[]) throws Exception {
|
public static void main(String args[]) throws Exception {
|
||||||
NPOIFSFileSystem pfs = new NPOIFSFileSystem(new File(args[0]));
|
NPOIFSFileSystem pfs = new NPOIFSFileSystem(new File(args[0]));
|
||||||
HDGFDiagram hdgf = new HDGFDiagram(pfs);
|
HDGFDiagram hdgf = new HDGFDiagram(pfs);
|
||||||
hdgf.debug();
|
hdgf.debug();
|
||||||
pfs.close();
|
pfs.close();
|
||||||
|
@ -48,11 +48,11 @@ public final class VisioTextExtractor extends POIOLE2TextExtractor {
|
|||||||
public VisioTextExtractor(POIFSFileSystem fs) throws IOException {
|
public VisioTextExtractor(POIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
public VisioTextExtractor(NPOIFSFileSystem fs) throws IOException {
|
public VisioTextExtractor(NPOIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
public VisioTextExtractor(DirectoryNode dir) throws IOException {
|
public VisioTextExtractor(DirectoryNode dir) throws IOException {
|
||||||
this(new HDGFDiagram(dir));
|
this(new HDGFDiagram(dir));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link #VisioTextExtractor(DirectoryNode)} instead
|
* @deprecated Use {@link #VisioTextExtractor(DirectoryNode)} instead
|
||||||
@ -91,18 +91,18 @@ public final class VisioTextExtractor extends POIOLE2TextExtractor {
|
|||||||
chunk.getName() != null &&
|
chunk.getName() != null &&
|
||||||
chunk.getName().equals("Text") &&
|
chunk.getName().equals("Text") &&
|
||||||
chunk.getCommands().length > 0) {
|
chunk.getCommands().length > 0) {
|
||||||
|
|
||||||
// First command
|
// First command
|
||||||
Command cmd = chunk.getCommands()[0];
|
Command cmd = chunk.getCommands()[0];
|
||||||
if(cmd != null && cmd.getValue() != null) {
|
if(cmd != null && cmd.getValue() != null) {
|
||||||
// Capture the text, as long as it isn't
|
// Capture the text, as long as it isn't
|
||||||
// simply an empty string
|
// simply an empty string
|
||||||
String str = cmd.getValue().toString();
|
String str = cmd.getValue().toString();
|
||||||
if(str.equals("") || str.equals("\n")) {
|
if(str.equals("") || str.equals("\n")) {
|
||||||
// Ignore empty strings
|
// Ignore empty strings
|
||||||
} else {
|
} else {
|
||||||
text.add( str );
|
text.add( str );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user