Class StreamPane.DocumentCreator
java.lang.Object
javax.swing.SwingWorker<StyledDocument,Integer>
org.apache.pdfbox.debugger.streampane.StreamPane.DocumentCreator
- All Implemented Interfaces:
Runnable
,Future<StyledDocument>
,RunnableFuture<StyledDocument>
- Enclosing class:
- StreamPane
A SwingWorker extended class that convert the stream to text loads in a document.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private int
private boolean
private final boolean
private final StreamPaneView
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DocumentCreator
(StreamPaneView targetView, String filterKey, boolean nice) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addOperators
(Object obj, StyledDocument docu) protected StyledDocument
protected void
done()
private StyledDocument
getContentStreamDocument
(InputStream inputStream) private StyledDocument
getDocument
(InputStream inputStream, String encoding) private String
getStringOfStream
(InputStream in, String encoding) private StyledDocument
getXMLDocument
(InputStream inputStream, String encoding) (package private) void
writeIndent
(StyledDocument docu) private void
writeOperand
(Object obj, StyledDocument docu) private void
writeToken
(Object obj, StyledDocument docu) Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
Field Details
-
targetView
-
filterKey
-
nice
private final boolean nice -
indent
private int indent -
needIndent
private boolean needIndent
-
-
Constructor Details
-
DocumentCreator
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<StyledDocument,
Integer>
-
done
protected void done()- Overrides:
done
in classSwingWorker<StyledDocument,
Integer>
-
getStringOfStream
-
getDocument
-
getXMLDocument
-
getContentStreamDocument
-
writeToken
-
writeOperand
- Throws:
BadLocationException
-
addOperators
- Throws:
BadLocationException
-
writeIndent
- Throws:
BadLocationException
-