Gridarta Editor
net.sf.gridarta.utils.xml.FixedDtdInputStream Class Reference

Injects a <!DOCTYPE...> declaration into an. More...

+ Inheritance diagram for net.sf.gridarta.utils.xml.FixedDtdInputStream:
+ Collaboration diagram for net.sf.gridarta.utils.xml.FixedDtdInputStream:

Public Member Functions

 FixedDtdInputStream (@NotNull final InputStream inputStream, @NotNull final String rootElement, @NotNull final String systemId)
 Creates a new instance. More...
 
int read () throws IOException
 

Private Attributes

InputStream inject
 The InputStream that injects the <!DOCTYPE...> declaration. More...
 
final InputStream inputStream
 The InputStream that is modified. More...
 
final String rootElement
 The tag name of the root element in the DOCTYPE declaration. More...
 
int state
 The current state. More...
 
final String systemId
 The system ID for the DOCTYPE declaration. More...
 

Detailed Description

Injects a <!DOCTYPE...> declaration into an.

InputStream

if it does not contain one. The input stream should contain XML.

Author
Andreas Kirschbaum

Definition at line 34 of file FixedDtdInputStream.java.

Constructor & Destructor Documentation

◆ FixedDtdInputStream()

net.sf.gridarta.utils.xml.FixedDtdInputStream.FixedDtdInputStream ( @NotNull final InputStream  inputStream,
@NotNull final String  rootElement,
@NotNull final String  systemId 
)

Creates a new instance.

Parameters
inputStreamthe input stream to modify
rootElementthe tag name of the root element in the DOCTYPE declaration
systemIdthe system ID for the DOCTYPE declaration

Definition at line 73 of file FixedDtdInputStream.java.

References net.sf.gridarta.utils.xml.FixedDtdInputStream.inputStream, net.sf.gridarta.utils.xml.FixedDtdInputStream.rootElement, and net.sf.gridarta.utils.xml.FixedDtdInputStream.systemId.

Member Function Documentation

◆ read()

int net.sf.gridarta.utils.xml.FixedDtdInputStream.read ( ) throws IOException

Definition at line 80 of file FixedDtdInputStream.java.

Member Data Documentation

◆ inject

InputStream net.sf.gridarta.utils.xml.FixedDtdInputStream.inject
private

The InputStream that injects the <!DOCTYPE...> declaration.

Set to null when not injecting bytes.

Definition at line 64 of file FixedDtdInputStream.java.

◆ inputStream

final InputStream net.sf.gridarta.utils.xml.FixedDtdInputStream.inputStream
private

The InputStream that is modified.

Definition at line 40 of file FixedDtdInputStream.java.

Referenced by net.sf.gridarta.utils.xml.FixedDtdInputStream.FixedDtdInputStream().

◆ rootElement

final String net.sf.gridarta.utils.xml.FixedDtdInputStream.rootElement
private

The tag name of the root element in the DOCTYPE declaration.

Definition at line 46 of file FixedDtdInputStream.java.

Referenced by net.sf.gridarta.utils.xml.FixedDtdInputStream.FixedDtdInputStream().

◆ state

int net.sf.gridarta.utils.xml.FixedDtdInputStream.state
private

The current state.

Definition at line 57 of file FixedDtdInputStream.java.

◆ systemId

final String net.sf.gridarta.utils.xml.FixedDtdInputStream.systemId
private

The system ID for the DOCTYPE declaration.

Definition at line 52 of file FixedDtdInputStream.java.

Referenced by net.sf.gridarta.utils.xml.FixedDtdInputStream.FixedDtdInputStream().


The documentation for this class was generated from the following file: