286N/A * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 286N/A * Copyright 2005 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A //xxx why dont we declare the type of entities, like assign integer for external/ internal etc.. 286N/A // whether this entity's declaration was found in the internal 286N/A /** Default constructor. */ 286N/A /** Constructs an entity. */ 286N/A /** Returns true if this entity was declared in the external subset. */ 286N/A /** Returns true if this is an external entity. */ 286N/A /** Returns true if this is an unparsed entity. */ 286N/A /** Clears the entity. */ 286N/A /** Sets the values of the entity. */ 286N/A /** Text value of entity. */ 286N/A /** Default constructor. */ 286N/A /** Constructs an internal entity. */ 286N/A }
// <init>(String,String) 286N/A /** Returns true if this is an external entity. */ 286N/A }
// isExternal():boolean 286N/A /** Returns true if this is an unparsed entity. */ 286N/A }
// isUnparsed():boolean 286N/A /** Clears the entity. */ 286N/A /** Sets the values of the entity. */ 286N/A /** Sets the values of the entity. */ 286N/A }
// setValues(InternalEntity) 286N/A }
// class InternalEntity 286N/A /** container for all relevant entity location information. */ 286N/A /** Notation name for unparsed entity. */ 286N/A /** Default constructor. */ 286N/A /** Constructs an internal entity. */ 286N/A }
// <init>(String,XMLResourceIdentifier, String) 286N/A /** Returns true if this is an external entity. */ 286N/A }
// isExternal():boolean 286N/A /** Returns true if this is an unparsed entity. */ 286N/A }
// isUnparsed():boolean 286N/A /** Clears the entity. */ 286N/A /** Sets the values of the entity. */ 286N/A /** Sets the values of the entity. */ 286N/A }
// setValues(ExternalEntity) 286N/A }
// class ExternalEntity 286N/A /** Default buffer size (4096). */ 286N/A * Buffer size. We get this value from a property. The default size 286N/A * is used if the input buffer size property is not specified. 286N/A * REVISIT: do we need a property for internal entity buffer size? 286N/A /** Default buffer size before we've finished with the XMLDecl: */ 286N/A /** Default internal entity buffer size (1024). */ 286N/A /** XXX let these field remain public right now, though we have defined methods for them. 286N/A /** XXX let these field remain public right now, though we have defined methods for them. 286N/A /** entity location information */ 286N/A /** Auto-detected encoding. */ 286N/A /** True if in a literal. */ 286N/A // whether this is an external or internal scanned entity 286N/A //each 'external' parsed entity may have xml/text declaration containing version information 286N/A /** Character buffer. */ 286N/A /** Position in character buffer at any point of time. */ 286N/A /** Count of characters present in buffer. */ 286N/A /** Encoding has been set externally for eg: using DOMInput*/ 286N/A * Encoding has been set externally, for example 286N/A * using a SAX InputSource or a DOM LSInput. 286N/A /** This variable is used to calculate the current position in the XML stream. 286N/A * Note that fCurrentEntity.position maintains the position relative to 286N/A * At any point of time absolute position in the XML stream can be calculated 286N/A * as fTotalCountTillLastLoad + fCurrentEntity.position 286N/A /** This variable stores the number of characters read during the load() 286N/A * operation. It is used to calculate fTotalCountTillLastLoad 286N/A /** Base character offset for computing absolute character offset. */ 286N/A /** Start position in character buffer. */ 286N/A // to know that prolog is read 286N/A /** returns the name of the current encoding 286N/A * @return current encoding name 286N/A /**each 'external' parsed entity may have xml/text declaration containing version information 286N/A * @return String version of the enity, for an internal entity version would be null 286N/A /** each 'external' parsed entity may have xml/text declaration containing version information 286N/A * @param String version of the external parsed entity 286N/A /** Returns the java.io.Reader associated with this entity.Readers are used 286N/A * to read from the file. Readers wrap any particular InputStream that was 286N/A * used to open the entity. 286N/A * @return java.io.Reader Reader associated with this entity 286N/A /** if entity was opened using the stream, return the associated inputstream 286N/A *@return java.io.InputStream InputStream associated with this entity 286N/A /** Constructs a scanned entity. */ 286N/A }
// <init>(StringXMLResourceIdentifier,InputStream,Reader,String,boolean, boolean) 286N/A * Release any resources associated with this entity. 286N/A /** Returns whether the encoding of this entity was externally specified. **/ 286N/A /** Sets whether the encoding of this entity was externally specified. **/ 286N/A /** Returns true if this is an external entity. */ 286N/A }
// isExternal():boolean 286N/A /** Returns true if this is an unparsed entity. */ 286N/A }
// isUnparsed():boolean 286N/A /** Returns a string representation of this object. */ 286N/A }
// class ScannedEntity