DTDReader when writing out
flattened external DTD subset file. Writing functionality encapsulated
here since it's specific to one mode of operation (flattening).
Note, too, that underlying IOExceptions are generally wrapped
as XMLStreamExceptions. This is needed to reduce amount of
work caller has to do for wrapping. It will still be possible to
unwrap these exceptions further up the call stack if need be.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | mFlattenStart
Pointer to first character in the current input buffer that has not yet been written to flatten writer. |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv int | mIsFlattening
Counter that indicates whether flattened output should be written to (non-null) mWriter; values above zero indicate output is enabled, zero and below that output is disabled. |
| pack-priv final Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void |
| mFlattenStart | back to summary |
|---|---|
| pack-priv int mFlattenStart Pointer to first character in the current input buffer that has not yet been written to flatten writer. | |
| mIncludeComments | back to summary |
|---|---|
| pack-priv final boolean mIncludeComments | |
| mIncludeConditionals | back to summary |
|---|---|
| pack-priv final boolean mIncludeConditionals | |
| mIncludePEs | back to summary |
|---|---|
| pack-priv final boolean mIncludePEs | |
| mIsFlattening | back to summary |
|---|---|
| pack-priv int mIsFlattening Counter that indicates whether flattened output should be written to (non-null) mWriter; values above zero indicate output is enabled, zero and below that output is disabled. Only enabled if mWriter is not null; will be temporarily disabled during processing of content that is not to be included (PE reference; or comments / conditional sections if comment/cs output is suppressed) | |
| mWriter | back to summary |
|---|---|
| pack-priv final Writer mWriter | |
| DTDWriter | back to summary |
|---|---|
| public DTDWriter(Writer out, boolean inclComments, boolean inclCond, boolean inclPEs) | |
| disableOutput | back to summary |
|---|---|
| public void disableOutput() | |
| enableOutput | back to summary |
|---|---|
| public void enableOutput(int newStart) | |
| flush | back to summary |
|---|---|
| public void flush(char[] buf, int upUntil) throws XMLStreamException | |
| getFlattenStart | back to summary |
|---|---|
| public int getFlattenStart() | |
| includeComments | back to summary |
|---|---|
| public boolean includeComments() | |
| includeConditionals | back to summary |
|---|---|
| public boolean includeConditionals() | |
| includeParamEntities | back to summary |
|---|---|
| public boolean includeParamEntities() | |
| output | back to summary |
|---|---|
| public void output(String output) throws XMLStreamException Method called when explicit output has to be done for flatten output: this is usually done when there's need to do speculative checks before it's known if some chars are output (when suppressing comments or conditional sections) | |
| output | back to summary |
|---|---|
| public void output(char c) throws XMLStreamException | |
| setFlattenStart | back to summary |
|---|---|
| public void setFlattenStart(int ptr) | |