jsr173_api-1.0

16:38:14.494 INFO  jd.cli.Main - Decompiling jsr173_api-1.0.jar
package javax.xml;

public class XMLConstants
{
  public static final String DEFAULT_NS_PREFIX = "";
  public static final String XML_NS_PREFIX = "xml";
  public static final String XML_NS_URI = "http://www.w3.org/XML/1998/namespace";
  public static final String XMLNS_ATTRIBUTE = "xmlns";
  public static final String XMLNS_ATTRIBUTE_NS_URI = "http://www.w3.org/2000/xmlns/";
}

/* Location:
 * Qualified Name:     javax.xml.XMLConstants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.namespace;

import java.util.Iterator;

public abstract interface NamespaceContext
{
  public abstract String getNamespaceURI(String paramString);
  
  public abstract String getPrefix(String paramString);
  
  public abstract Iterator getPrefixes(String paramString);
}

/* Location:
 * Qualified Name:     javax.xml.namespace.NamespaceContext
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.namespace;

import java.io.Serializable;

public class QName
  implements Serializable
{
  private String namespaceURI;
  private String localPart;
  private String prefix;
  
  public QName(String localPart)
  {
    this("", localPart);
  }
  
  public QName(String namespaceURI, String localPart)
  {
    this(namespaceURI, localPart, "");
  }
  
  public QName(String namespaceURI, String localPart, String prefix)
  {
    if (localPart == null) {
      throw new IllegalArgumentException("Local part not allowed to be null");
    }
    if (namespaceURI == null) {
      namespaceURI = "";
    }
    if (prefix == null) {
      prefix = "";
    }
    this.namespaceURI = namespaceURI;
    this.localPart = localPart;
    this.prefix = prefix;
  }
  
  public String getNamespaceURI()
  {
    return namespaceURI;
  }
  
  public String getLocalPart()
  {
    return localPart;
  }
  
  public String getPrefix()
  {
    return prefix;
  }
  
  public String toString()
  {
    if (namespaceURI.equals("")) {
      return localPart;
    }
    return "{" + namespaceURI + "}" + localPart;
  }
  
  public static QName valueOf(String s)
  {
    if ((s == null) || (s.equals(""))) {
      throw new IllegalArgumentException("invalid QName literal");
    }
    if (s.charAt(0) == '{')
    {
      int i = s.indexOf('}');
      if (i == -1) {
        throw new IllegalArgumentException("invalid QName literal");
      }
      if (i == s.length() - 1) {
        throw new IllegalArgumentException("invalid QName literal");
      }
      return new QName(s.substring(1, i), s.substring(i + 1));
    }
    return new QName(s);
  }
  
  public final int hashCode()
  {
    return namespaceURI.hashCode() ^ localPart.hashCode();
  }
  
  public final boolean equals(Object obj)
  {
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof QName)) {
      return false;
    }
    QName qname = (QName)obj;
    
    return (localPart.equals(localPart)) && (namespaceURI.equals(namespaceURI));
  }
}

/* Location:
 * Qualified Name:     javax.xml.namespace.QName
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import javax.xml.stream.events.XMLEvent;

public abstract interface EventFilter
{
  public abstract boolean accept(XMLEvent paramXMLEvent);
}

/* Location:
 * Qualified Name:     javax.xml.stream.EventFilter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public class FactoryConfigurationError
  extends Error
{
  Exception nested;
  
  public FactoryConfigurationError(Exception e)
  {
    nested = e;
  }
  
  public FactoryConfigurationError(Exception e, String msg)
  {
    super(msg);
    nested = e;
  }
  
  public FactoryConfigurationError(String msg, Exception e)
  {
    super(msg);
    nested = e;
  }
  
  public FactoryConfigurationError(String msg)
  {
    super(msg);
  }
  
  public Exception getException()
  {
    return nested;
  }
  
  public String getMessage()
  {
    String msg = super.getMessage();
    if (msg != null) {
      return msg;
    }
    if (nested != null)
    {
      msg = nested.getMessage();
      if (msg == null) {
        msg = nested.getClass().toString();
      }
    }
    return msg;
  }
  
  public FactoryConfigurationError() {}
}

/* Location:
 * Qualified Name:     javax.xml.stream.FactoryConfigurationError
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.Properties;

class FactoryFinder
{
  private static boolean debug = false;
  
  static
  {
    try
    {
      debug = System.getProperty("xml.stream.debug") != null;
    }
    catch (Exception x) {}
  }
  
  private static void debugPrintln(String msg)
  {
    if (debug) {
      System.err.println("STREAM: " + msg);
    }
  }
  
  private static ClassLoader findClassLoader()
    throws FactoryConfigurationError
  {
    ClassLoader classLoader;
    try
    {
      Class clazz = Class.forName(FactoryFinder.class.getName() + "$ClassLoaderFinderConcrete");
      
      ClassLoaderFinder clf = (ClassLoaderFinder)clazz.newInstance();
      classLoader = clf.getContextClassLoader();
    }
    catch (LinkageError le)
    {
      classLoader = FactoryFinder.class.getClassLoader();
    }
    catch (ClassNotFoundException x)
    {
      classLoader = FactoryFinder.class.getClassLoader();
    }
    catch (Exception x)
    {
      throw new FactoryConfigurationError(x.toString(), x);
    }
    return classLoader;
  }
  
  private static Object newInstance(String className, ClassLoader classLoader)
    throws FactoryConfigurationError
  {
    try
    {
      Class spiClass;
      if (classLoader == null) {
        spiClass = Class.forName(className);
      } else {
        spiClass = classLoader.loadClass(className);
      }
      return spiClass.newInstance();
    }
    catch (ClassNotFoundException x)
    {
      throw new FactoryConfigurationError("Provider " + className + " not found", x);
    }
    catch (Exception x)
    {
      throw new FactoryConfigurationError("Provider " + className + " could not be instantiated: " + x, x);
    }
  }
  
  static Object find(String factoryId)
    throws FactoryConfigurationError
  {
    return find(factoryId, null);
  }
  
  static Object find(String factoryId, String fallbackClassName)
    throws FactoryConfigurationError
  {
    ClassLoader classLoader = findClassLoader();
    return find(factoryId, fallbackClassName, classLoader);
  }
  
  static Object find(String factoryId, String fallbackClassName, ClassLoader classLoader)
    throws FactoryConfigurationError
  {
    try
    {
      String systemProp = System.getProperty(factoryId);
      if (systemProp != null)
      {
        debugPrintln("found system property" + systemProp);
        return newInstance(systemProp, classLoader);
      }
    }
    catch (SecurityException se) {}
    try
    {
      String javah = System.getProperty("java.home");
      String configFile = javah + File.separator + "lib" + File.separator + "jaxp.properties";
      
      File f = new File(configFile);
      if (f.exists())
      {
        Properties props = new Properties();
        props.load(new FileInputStream(f));
        String factoryClassName = props.getProperty(factoryId);
        debugPrintln("found java.home property " + factoryClassName);
        return newInstance(factoryClassName, classLoader);
      }
    }
    catch (Exception ex)
    {
      if (debug) {
        ex.printStackTrace();
      }
    }
    String serviceId = "META-INF/services/" + factoryId;
    try
    {
      InputStream is = null;
      if (classLoader == null) {
        is = ClassLoader.getSystemResourceAsStream(serviceId);
      } else {
        is = classLoader.getResourceAsStream(serviceId);
      }
      if (is != null)
      {
        debugPrintln("found " + serviceId);
        BufferedReader rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        
        String factoryClassName = rd.readLine();
        rd.close();
        if ((factoryClassName != null) && (!"".equals(factoryClassName)))
        {
          debugPrintln("loaded from services: " + factoryClassName);
          return newInstance(factoryClassName, classLoader);
        }
      }
    }
    catch (Exception ex)
    {
      if (debug) {
        ex.printStackTrace();
      }
    }
    if (fallbackClassName == null) {
      throw new FactoryConfigurationError("Provider for " + factoryId + " cannot be found", null);
    }
    debugPrintln("loaded from fallback value: " + fallbackClassName);
    return newInstance(fallbackClassName, classLoader);
  }
  
  private static abstract class ClassLoaderFinder
  {
    private ClassLoaderFinder() {}
    
    abstract ClassLoader getContextClassLoader();
    
    ClassLoaderFinder(FactoryFinder.1 x0)
    {
      this();
    }
  }
  
  static class ClassLoaderFinderConcrete
    extends FactoryFinder.ClassLoaderFinder
  {
    ClassLoaderFinderConcrete()
    {
      super();
    }
    
    ClassLoader getContextClassLoader()
    {
      return Thread.currentThread().getContextClassLoader();
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.stream.FactoryFinder
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

class FactoryFinder$1 {}

/* Location:
 * Qualified Name:     javax.xml.stream.FactoryFinder.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

abstract class FactoryFinder$ClassLoaderFinder
{
  private FactoryFinder$ClassLoaderFinder() {}
  
  abstract ClassLoader getContextClassLoader();
  
  FactoryFinder$ClassLoaderFinder(FactoryFinder.1 x0)
  {
    this();
  }
}

/* Location:
 * Qualified Name:     javax.xml.stream.FactoryFinder.ClassLoaderFinder
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

class FactoryFinder$ClassLoaderFinderConcrete
  extends FactoryFinder.ClassLoaderFinder
{
  FactoryFinder$ClassLoaderFinderConcrete()
  {
    super(null);
  }
  
  ClassLoader getContextClassLoader()
  {
    return Thread.currentThread().getContextClassLoader();
  }
}

/* Location:
 * Qualified Name:     javax.xml.stream.FactoryFinder.ClassLoaderFinderConcrete
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public abstract interface Location
{
  public abstract int getCharacterOffset();
  
  public abstract int getColumnNumber();
  
  public abstract int getLineNumber();
  
  public abstract String getPublicId();
  
  public abstract String getSystemId();
}

/* Location:
 * Qualified Name:     javax.xml.stream.Location
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public abstract interface StreamFilter
{
  public abstract boolean accept(XMLStreamReader paramXMLStreamReader);
}

/* Location:
 * Qualified Name:     javax.xml.stream.StreamFilter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import java.util.Iterator;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.events.Characters;
import javax.xml.stream.events.Comment;
import javax.xml.stream.events.DTD;
import javax.xml.stream.events.EndDocument;
import javax.xml.stream.events.EndElement;
import javax.xml.stream.events.EntityDeclaration;
import javax.xml.stream.events.EntityReference;
import javax.xml.stream.events.Namespace;
import javax.xml.stream.events.ProcessingInstruction;
import javax.xml.stream.events.StartDocument;
import javax.xml.stream.events.StartElement;

public abstract class XMLEventFactory
{
  public abstract void setLocation(Location paramLocation);
  
  public static XMLEventFactory newInstance()
    throws FactoryConfigurationError
  {
    return (XMLEventFactory)FactoryFinder.find("javax.xml.stream.XMLEventFactory", "com.bea.xml.stream.EventFactory");
  }
  
  public abstract EndDocument createEndDocument();
  
  public abstract StartDocument createStartDocument();
  
  public abstract Characters createCData(String paramString);
  
  public abstract Characters createCharacters(String paramString);
  
  public abstract Characters createIgnorableSpace(String paramString);
  
  public abstract Characters createSpace(String paramString);
  
  public abstract Comment createComment(String paramString);
  
  public abstract DTD createDTD(String paramString);
  
  public abstract Namespace createNamespace(String paramString);
  
  public abstract StartDocument createStartDocument(String paramString);
  
  public static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader)
    throws FactoryConfigurationError
  {
    return (XMLEventFactory)FactoryFinder.find(factoryId, "com.bea.xml.stream.EventFactory", classLoader);
  }
  
  public abstract Attribute createAttribute(String paramString1, String paramString2);
  
  public abstract Attribute createAttribute(QName paramQName, String paramString);
  
  public abstract EndElement createEndElement(QName paramQName, Iterator paramIterator);
  
  public abstract EntityReference createEntityReference(String paramString, EntityDeclaration paramEntityDeclaration);
  
  public abstract Namespace createNamespace(String paramString1, String paramString2);
  
  public abstract ProcessingInstruction createProcessingInstruction(String paramString1, String paramString2);
  
  public abstract StartDocument createStartDocument(String paramString1, String paramString2);
  
  public abstract StartDocument createStartDocument(String paramString1, String paramString2, boolean paramBoolean);
  
  public abstract EndElement createEndElement(String paramString1, String paramString2, String paramString3);
  
  public abstract StartElement createStartElement(String paramString1, String paramString2, String paramString3);
  
  public abstract StartElement createStartElement(QName paramQName, Iterator paramIterator1, Iterator paramIterator2);
  
  public abstract Attribute createAttribute(String paramString1, String paramString2, String paramString3, String paramString4);
  
  public abstract EndElement createEndElement(String paramString1, String paramString2, String paramString3, Iterator paramIterator);
  
  public abstract StartElement createStartElement(String paramString1, String paramString2, String paramString3, Iterator paramIterator1, Iterator paramIterator2);
  
  public abstract StartElement createStartElement(String paramString1, String paramString2, String paramString3, Iterator paramIterator1, Iterator paramIterator2, NamespaceContext paramNamespaceContext);
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLEventFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import java.util.Iterator;
import javax.xml.stream.events.XMLEvent;

public abstract interface XMLEventReader
  extends Iterator
{
  public abstract void close()
    throws XMLStreamException;
  
  public abstract boolean hasNext();
  
  public abstract String getElementText()
    throws XMLStreamException;
  
  public abstract XMLEvent nextEvent()
    throws XMLStreamException;
  
  public abstract XMLEvent nextTag()
    throws XMLStreamException;
  
  public abstract XMLEvent peek()
    throws XMLStreamException;
  
  public abstract Object getProperty(String paramString)
    throws IllegalArgumentException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLEventReader
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import javax.xml.namespace.NamespaceContext;
import javax.xml.stream.events.XMLEvent;
import javax.xml.stream.util.XMLEventConsumer;

public abstract interface XMLEventWriter
  extends XMLEventConsumer
{
  public abstract void close()
    throws XMLStreamException;
  
  public abstract void flush()
    throws XMLStreamException;
  
  public abstract void setDefaultNamespace(String paramString)
    throws XMLStreamException;
  
  public abstract NamespaceContext getNamespaceContext();
  
  public abstract void setNamespaceContext(NamespaceContext paramNamespaceContext)
    throws XMLStreamException;
  
  public abstract void add(XMLEventReader paramXMLEventReader)
    throws XMLStreamException;
  
  public abstract void add(XMLEvent paramXMLEvent)
    throws XMLStreamException;
  
  public abstract String getPrefix(String paramString)
    throws XMLStreamException;
  
  public abstract void setPrefix(String paramString1, String paramString2)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLEventWriter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import java.io.InputStream;
import java.io.Reader;
import javax.xml.stream.util.XMLEventAllocator;
import javax.xml.transform.Source;

public abstract class XMLInputFactory
{
  public static final String IS_NAMESPACE_AWARE = "javax.xml.stream.isNamespaceAware";
  public static final String IS_VALIDATING = "javax.xml.stream.isValidating";
  public static final String IS_COALESCING = "javax.xml.stream.isCoalescing";
  public static final String IS_REPLACING_ENTITY_REFERENCES = "javax.xml.stream.isReplacingEntityReferences";
  public static final String IS_SUPPORTING_EXTERNAL_ENTITIES = "javax.xml.stream.isSupportingExternalEntities";
  public static final String SUPPORT_DTD = "javax.xml.stream.supportDTD";
  public static final String REPORTER = "javax.xml.stream.reporter";
  public static final String RESOLVER = "javax.xml.stream.resolver";
  public static final String ALLOCATOR = "javax.xml.stream.allocator";
  
  public abstract boolean isPropertySupported(String paramString);
  
  public static XMLInputFactory newInstance()
    throws FactoryConfigurationError
  {
    return (XMLInputFactory)FactoryFinder.find("javax.xml.stream.XMLInputFactory", "com.bea.xml.stream.MXParserFactory");
  }
  
  public abstract XMLReporter getXMLReporter();
  
  public abstract void setXMLReporter(XMLReporter paramXMLReporter);
  
  public abstract XMLResolver getXMLResolver();
  
  public abstract void setXMLResolver(XMLResolver paramXMLResolver);
  
  public abstract XMLEventAllocator getEventAllocator();
  
  public abstract void setEventAllocator(XMLEventAllocator paramXMLEventAllocator);
  
  public abstract Object getProperty(String paramString)
    throws IllegalArgumentException;
  
  public abstract void setProperty(String paramString, Object paramObject)
    throws IllegalArgumentException;
  
  public abstract XMLEventReader createXMLEventReader(InputStream paramInputStream)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(Reader paramReader)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(XMLStreamReader paramXMLStreamReader)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(Source paramSource)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createXMLStreamReader(InputStream paramInputStream)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createXMLStreamReader(Reader paramReader)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createXMLStreamReader(Source paramSource)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(String paramString, InputStream paramInputStream)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(String paramString, Reader paramReader)
    throws XMLStreamException;
  
  public abstract XMLEventReader createXMLEventReader(InputStream paramInputStream, String paramString)
    throws XMLStreamException;
  
  public abstract XMLEventReader createFilteredReader(XMLEventReader paramXMLEventReader, EventFilter paramEventFilter)
    throws XMLStreamException;
  
  public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader)
    throws FactoryConfigurationError
  {
    return (XMLInputFactory)FactoryFinder.find(factoryId, "com.bea.xml.stream.MXParserFactory", classLoader);
  }
  
  public abstract XMLStreamReader createXMLStreamReader(String paramString, InputStream paramInputStream)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createXMLStreamReader(String paramString, Reader paramReader)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createXMLStreamReader(InputStream paramInputStream, String paramString)
    throws XMLStreamException;
  
  public abstract XMLStreamReader createFilteredReader(XMLStreamReader paramXMLStreamReader, StreamFilter paramStreamFilter)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLInputFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import java.io.OutputStream;
import java.io.Writer;
import javax.xml.transform.Result;

public abstract class XMLOutputFactory
{
  public static final String IS_REPAIRING_NAMESPACES = "javax.xml.stream.isRepairingNamespaces";
  
  public abstract boolean isPropertySupported(String paramString);
  
  public static XMLOutputFactory newInstance()
    throws FactoryConfigurationError
  {
    return (XMLOutputFactory)FactoryFinder.find("javax.xml.stream.XMLOutputFactory", "com.bea.xml.stream.XMLOutputFactoryBase");
  }
  
  public abstract Object getProperty(String paramString)
    throws IllegalArgumentException;
  
  public abstract void setProperty(String paramString, Object paramObject)
    throws IllegalArgumentException;
  
  public abstract XMLEventWriter createXMLEventWriter(OutputStream paramOutputStream)
    throws XMLStreamException;
  
  public abstract XMLEventWriter createXMLEventWriter(Writer paramWriter)
    throws XMLStreamException;
  
  public abstract XMLEventWriter createXMLEventWriter(Result paramResult)
    throws XMLStreamException;
  
  public abstract XMLStreamWriter createXMLStreamWriter(OutputStream paramOutputStream)
    throws XMLStreamException;
  
  public abstract XMLStreamWriter createXMLStreamWriter(Writer paramWriter)
    throws XMLStreamException;
  
  public abstract XMLStreamWriter createXMLStreamWriter(Result paramResult)
    throws XMLStreamException;
  
  public abstract XMLEventWriter createXMLEventWriter(OutputStream paramOutputStream, String paramString)
    throws XMLStreamException;
  
  public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader)
    throws FactoryConfigurationError
  {
    return (XMLInputFactory)FactoryFinder.find(factoryId, "com.bea.xml.stream.XMLOutputFactoryBase", classLoader);
  }
  
  public abstract XMLStreamWriter createXMLStreamWriter(OutputStream paramOutputStream, String paramString)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLOutputFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public abstract interface XMLReporter
{
  public abstract void report(String paramString1, String paramString2, Object paramObject, Location paramLocation)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLReporter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public abstract interface XMLResolver
{
  public abstract Object resolveEntity(String paramString1, String paramString2, String paramString3, String paramString4)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLResolver
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public abstract interface XMLStreamConstants
{
  public static final int START_ELEMENT = 1;
  public static final int END_ELEMENT = 2;
  public static final int PROCESSING_INSTRUCTION = 3;
  public static final int CHARACTERS = 4;
  public static final int COMMENT = 5;
  public static final int SPACE = 6;
  public static final int START_DOCUMENT = 7;
  public static final int END_DOCUMENT = 8;
  public static final int ENTITY_REFERENCE = 9;
  public static final int ATTRIBUTE = 10;
  public static final int DTD = 11;
  public static final int CDATA = 12;
  public static final int NAMESPACE = 13;
  public static final int NOTATION_DECLARATION = 14;
  public static final int ENTITY_DECLARATION = 15;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLStreamConstants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

public class XMLStreamException
  extends Exception
{
  protected Throwable nested;
  protected Location location;
  
  public XMLStreamException(String msg)
  {
    super(msg);
  }
  
  public XMLStreamException(Throwable th)
  {
    nested = th;
  }
  
  public XMLStreamException(String msg, Throwable th)
  {
    super(msg);
    nested = th;
  }
  
  public XMLStreamException(String msg, Location location, Throwable th)
  {
    super("ParseError at [row,col]:[" + location.getLineNumber() + "," + location.getColumnNumber() + "]\n" + "Message: " + msg);
    
    nested = th;
    this.location = location;
  }
  
  public XMLStreamException(String msg, Location location)
  {
    super("ParseError at [row,col]:[" + location.getLineNumber() + "," + location.getColumnNumber() + "]\n" + "Message: " + msg);
    
    this.location = location;
  }
  
  public Throwable getNestedException()
  {
    return nested;
  }
  
  public Location getLocation()
  {
    return location;
  }
  
  public XMLStreamException() {}
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLStreamException
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;

public abstract interface XMLStreamReader
  extends XMLStreamConstants
{
  public abstract int getAttributeCount();
  
  public abstract int getEventType();
  
  public abstract int getNamespaceCount();
  
  public abstract int getTextLength();
  
  public abstract int getTextStart();
  
  public abstract int next()
    throws XMLStreamException;
  
  public abstract int nextTag()
    throws XMLStreamException;
  
  public abstract void close()
    throws XMLStreamException;
  
  public abstract boolean hasName();
  
  public abstract boolean hasNext()
    throws XMLStreamException;
  
  public abstract boolean hasText();
  
  public abstract boolean isCharacters();
  
  public abstract boolean isEndElement();
  
  public abstract boolean isStandalone();
  
  public abstract boolean isStartElement();
  
  public abstract boolean isWhiteSpace();
  
  public abstract boolean standaloneSet();
  
  public abstract char[] getTextCharacters();
  
  public abstract boolean isAttributeSpecified(int paramInt);
  
  public abstract int getTextCharacters(int paramInt1, char[] paramArrayOfChar, int paramInt2, int paramInt3)
    throws XMLStreamException;
  
  public abstract String getCharacterEncodingScheme();
  
  public abstract String getElementText()
    throws XMLStreamException;
  
  public abstract String getEncoding();
  
  public abstract String getLocalName();
  
  public abstract String getNamespaceURI();
  
  public abstract String getPIData();
  
  public abstract String getPITarget();
  
  public abstract String getPrefix();
  
  public abstract String getText();
  
  public abstract String getVersion();
  
  public abstract String getAttributeLocalName(int paramInt);
  
  public abstract String getAttributeNamespace(int paramInt);
  
  public abstract String getAttributePrefix(int paramInt);
  
  public abstract String getAttributeType(int paramInt);
  
  public abstract String getAttributeValue(int paramInt);
  
  public abstract String getNamespacePrefix(int paramInt);
  
  public abstract String getNamespaceURI(int paramInt);
  
  public abstract NamespaceContext getNamespaceContext();
  
  public abstract QName getName();
  
  public abstract QName getAttributeName(int paramInt);
  
  public abstract Location getLocation();
  
  public abstract Object getProperty(String paramString)
    throws IllegalArgumentException;
  
  public abstract void require(int paramInt, String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract String getNamespaceURI(String paramString);
  
  public abstract String getAttributeValue(String paramString1, String paramString2);
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLStreamReader
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream;

import javax.xml.namespace.NamespaceContext;

public abstract interface XMLStreamWriter
{
  public abstract void close()
    throws XMLStreamException;
  
  public abstract void flush()
    throws XMLStreamException;
  
  public abstract void writeEndDocument()
    throws XMLStreamException;
  
  public abstract void writeEndElement()
    throws XMLStreamException;
  
  public abstract void writeStartDocument()
    throws XMLStreamException;
  
  public abstract void writeCharacters(char[] paramArrayOfChar, int paramInt1, int paramInt2)
    throws XMLStreamException;
  
  public abstract void setDefaultNamespace(String paramString)
    throws XMLStreamException;
  
  public abstract void writeCData(String paramString)
    throws XMLStreamException;
  
  public abstract void writeCharacters(String paramString)
    throws XMLStreamException;
  
  public abstract void writeComment(String paramString)
    throws XMLStreamException;
  
  public abstract void writeDTD(String paramString)
    throws XMLStreamException;
  
  public abstract void writeDefaultNamespace(String paramString)
    throws XMLStreamException;
  
  public abstract void writeEmptyElement(String paramString)
    throws XMLStreamException;
  
  public abstract void writeEntityRef(String paramString)
    throws XMLStreamException;
  
  public abstract void writeProcessingInstruction(String paramString)
    throws XMLStreamException;
  
  public abstract void writeStartDocument(String paramString)
    throws XMLStreamException;
  
  public abstract void writeStartElement(String paramString)
    throws XMLStreamException;
  
  public abstract NamespaceContext getNamespaceContext();
  
  public abstract void setNamespaceContext(NamespaceContext paramNamespaceContext)
    throws XMLStreamException;
  
  public abstract Object getProperty(String paramString)
    throws IllegalArgumentException;
  
  public abstract String getPrefix(String paramString)
    throws XMLStreamException;
  
  public abstract void setPrefix(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeAttribute(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeEmptyElement(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeNamespace(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeProcessingInstruction(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeStartDocument(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeStartElement(String paramString1, String paramString2)
    throws XMLStreamException;
  
  public abstract void writeAttribute(String paramString1, String paramString2, String paramString3)
    throws XMLStreamException;
  
  public abstract void writeEmptyElement(String paramString1, String paramString2, String paramString3)
    throws XMLStreamException;
  
  public abstract void writeStartElement(String paramString1, String paramString2, String paramString3)
    throws XMLStreamException;
  
  public abstract void writeAttribute(String paramString1, String paramString2, String paramString3, String paramString4)
    throws XMLStreamException;
}

/* Location:
 * Qualified Name:     javax.xml.stream.XMLStreamWriter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

import javax.xml.namespace.QName;

public abstract interface Attribute
  extends XMLEvent
{
  public abstract boolean isSpecified();
  
  public abstract String getDTDType();
  
  public abstract String getValue();
  
  public abstract QName getName();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.Attribute
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface Characters
  extends XMLEvent
{
  public abstract boolean isCData();
  
  public abstract boolean isIgnorableWhiteSpace();
  
  public abstract boolean isWhiteSpace();
  
  public abstract String getData();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.Characters
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface Comment
  extends XMLEvent
{
  public abstract String getText();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.Comment
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

import java.util.List;

public abstract interface DTD
  extends XMLEvent
{
  public abstract Object getProcessedDTD();
  
  public abstract String getDocumentTypeDeclaration();
  
  public abstract List getEntities();
  
  public abstract List getNotations();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.DTD
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface EndDocument
  extends XMLEvent
{}

/* Location:
 * Qualified Name:     javax.xml.stream.events.EndDocument
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

import java.util.Iterator;
import javax.xml.namespace.QName;

public abstract interface EndElement
  extends XMLEvent
{
  public abstract Iterator getNamespaces();
  
  public abstract QName getName();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.EndElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface EntityDeclaration
  extends XMLEvent
{
  public abstract String getBaseURI();
  
  public abstract String getName();
  
  public abstract String getNotationName();
  
  public abstract String getPublicId();
  
  public abstract String getReplacementText();
  
  public abstract String getSystemId();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.EntityDeclaration
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface EntityReference
  extends XMLEvent
{
  public abstract String getName();
  
  public abstract EntityDeclaration getDeclaration();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.EntityReference
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface Namespace
  extends Attribute
{
  public abstract boolean isDefaultNamespaceDeclaration();
  
  public abstract String getNamespaceURI();
  
  public abstract String getPrefix();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.Namespace
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface NotationDeclaration
  extends XMLEvent
{
  public abstract String getName();
  
  public abstract String getPublicId();
  
  public abstract String getSystemId();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.NotationDeclaration
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface ProcessingInstruction
  extends XMLEvent
{
  public abstract String getData();
  
  public abstract String getTarget();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.ProcessingInstruction
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

public abstract interface StartDocument
  extends XMLEvent
{
  public abstract boolean encodingSet();
  
  public abstract boolean isStandalone();
  
  public abstract boolean standaloneSet();
  
  public abstract String getCharacterEncodingScheme();
  
  public abstract String getSystemId();
  
  public abstract String getVersion();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.StartDocument
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

import java.util.Iterator;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;

public abstract interface StartElement
  extends XMLEvent
{
  public abstract Iterator getAttributes();
  
  public abstract Iterator getNamespaces();
  
  public abstract NamespaceContext getNamespaceContext();
  
  public abstract QName getName();
  
  public abstract String getNamespaceURI(String paramString);
  
  public abstract Attribute getAttributeByName(QName paramQName);
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.StartElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.events;

import java.io.Writer;
import javax.xml.namespace.QName;
import javax.xml.stream.Location;
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;

public abstract interface XMLEvent
  extends XMLStreamConstants
{
  public abstract int getEventType();
  
  public abstract boolean isAttribute();
  
  public abstract boolean isCharacters();
  
  public abstract boolean isEndDocument();
  
  public abstract boolean isEndElement();
  
  public abstract boolean isEntityReference();
  
  public abstract boolean isNamespace();
  
  public abstract boolean isProcessingInstruction();
  
  public abstract boolean isStartDocument();
  
  public abstract boolean isStartElement();
  
  public abstract void writeAsEncodedUnicode(Writer paramWriter)
    throws XMLStreamException;
  
  public abstract QName getSchemaType();
  
  public abstract Location getLocation();
  
  public abstract Characters asCharacters();
  
  public abstract EndElement asEndElement();
  
  public abstract StartElement asStartElement();
}

/* Location:
 * Qualified Name:     javax.xml.stream.events.XMLEvent
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.stream.util;

import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.XMLEvent;

public class EventReaderDelegate
  implements XMLEventReader
{
  private XMLEventReader reader;
  
  public EventReaderDelegate(XMLEventReader reader)
  {
    this.reader = reader;
  }
  
  public void setParent(XMLEventReader reader)
  {
    this.reader = reader;
  }
  
  public XMLEventReader getParent()
  {
    return reader;
  }
  
  public XMLEvent nextEvent()
    throws XMLStreamException
  {
    return reader.nextEvent();
  }
  
  public Object next()
  {
    return reader.next();
  }
  
  public boolean hasNext()
  {
    return reader.hasNext();
  }
  
  public XMLEvent peek()
    throws XMLStreamException
  {
    return reader.peek();
  }
  
  public void close()
    throws XMLStreamException
  {
    reader.close();
  }
  
  public String getElementText()
    throws XMLStreamException
  {
    return reader.getElementText();
  }
  
  public XMLEvent nextTag()
    throws XMLStreamException
  {
    return reader.nextTag();
1 2

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd