286N/A public javax.xml.stream.events.XMLEvent allocate(javax.xml.stream.XMLStreamReader xMLStreamReader) throws javax.xml.stream.XMLStreamException {
286N/A // allocate is not supposed to change the state of the reader so we shouldn't be calling next.
286N/A public void allocate(javax.xml.stream.XMLStreamReader xMLStreamReader, javax.xml.stream.util.XMLEventConsumer xMLEventConsumer) throws javax.xml.stream.XMLStreamException {
286N/A return new XMLEventAllocatorImpl();
286N/A //we might have different XMLStreamReader so check every time for the namespace aware property
286N/A if( ((Boolean)streamReader.getProperty(XMLInputFactory.IS_NAMESPACE_AWARE)).booleanValue() ){
286N/A if( ((Boolean)streamReader.getProperty(XMLInputFactory.IS_NAMESPACE_AWARE)).booleanValue() ){
286N/A ProcessingInstructionEvent piEvent = new ProcessingInstructionEvent(streamReader.getPITarget(),streamReader.getPIData());
286N/A EntityReferenceEvent entityEvent = new EntityReferenceEvent(streamReader.getLocalName(), new EntityDeclarationImpl(streamReader.getLocalName(),streamReader.getText()));
286N/A //so we can be sure that there wont be any namespace declaration as part of this function call
286N/A * if (prefix.equals(XMLConstants.XMLNS_ATTRIBUTE) ) {