Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.DOMInputImpl


            ++idx;
        }

        LSInputList list = new LSInputList() {
            public LSInput item(int index) {
                DOMInputImpl input = new DOMInputImpl();
                input.setSystemId(uris[index]);
                input.setByteStream(new ByteArrayInputStream(content[index]));
                return input;
            }

            public int getLength() {
                return uris.length;
View Full Code Here


     *
     * @return mapping between schema URI and the "captured" schema text (in byte form)
     */
    public static Map<URI, byte[]> captureSchema(String initialUri, XMLEntityResolver resolver)
            throws XsdException {
        DOMInputImpl input = new DOMInputImpl();
        input.setSystemId(initialUri);
        Map<URI, byte[]> ret = captureSchema(input, resolver);

        return ret;
    }
View Full Code Here

    public static Map<URI, byte[]> captureSchema(URI systemURI, String schemaData,
                                                 XMLEntityResolver resolver) throws XsdException {
        if (__log.isDebugEnabled())
            __log.debug("captureSchema(URI,Text,...): systemURI=" + systemURI);

        DOMInputImpl input = new DOMInputImpl();
        input.setSystemId(systemURI.toString());
        input.setStringData(schemaData);

        Map<URI, byte[]> ret = captureSchema(input, resolver);
        // Let's not forget the root schema.
        try {
            // TODO don't assume UTF-8 - but which encoding is required?
View Full Code Here

            ++idx;
        }

        LSInputList list = new LSInputList() {
            public LSInput item(int index) {
                DOMInputImpl input = new DOMInputImpl();
                input.setSystemId(uris[index]);
                input.setByteStream(new ByteArrayInputStream(content[index]));
                return input;
            }

            public int getLength() {
                return uris.length;
View Full Code Here

            ++idx;
        }

        LSInputList list = new LSInputList() {
            public LSInput item(int index) {
                DOMInputImpl input = new DOMInputImpl();
                input.setSystemId(uris[index]);
                input.setByteStream(new ByteArrayInputStream(content[index]));
                return input;
            }

            public int getLength() {
                return uris.length;
View Full Code Here

    public static Map<URI, byte[]> captureSchema(URI systemURI, byte[] schemaData,
                                                 XMLEntityResolver resolver) throws XsdException {
        if (__log.isDebugEnabled())
            __log.debug("captureSchema(URI,Text,...): systemURI=" + systemURI);

        DOMInputImpl input = new DOMInputImpl();
        input.setSystemId(systemURI.toString());
        input.setByteStream(new ByteArrayInputStream(schemaData));

        Map<URI, byte[]> ret = captureSchema(input, resolver);
        ret.put(systemURI, schemaData);
        return ret;
    }
View Full Code Here

   *
   * @return mapping between schema URI and the "captured" schema text (in byte form)
   */
  public static Map<URI, byte[]> captureSchema(String initialUri, XMLEntityResolver resolver)
      throws XsdException {
    DOMInputImpl input = new DOMInputImpl();
    input.setSystemId(initialUri);
    return captureSchema(input, resolver);
  }
View Full Code Here

      XMLEntityResolver resolver) throws XsdException {
   
    if (__log.isDebugEnabled())
      __log.debug("captureSchema(URI,Text,...): systemURI=" + systemURI);
   
    DOMInputImpl input = new DOMInputImpl();
    input.setSystemId(systemURI.toString());
    input.setStringData(schemaData);

    Map<URI, byte[]> ret = captureSchema(input, resolver);
    // Let's not forget the root schema.
    try {
      // TODO don't assume UTF-8 - but which encoding is required?
View Full Code Here

            ++idx;
        }

        LSInputList list = new LSInputList() {
            public LSInput item(int index) {
                DOMInputImpl input = new DOMInputImpl();
                input.setSystemId(uris[index]);
                input.setByteStream(new ByteArrayInputStream(content[index]));
                return input;
            }

            public int getLength() {
                return uris.length;
View Full Code Here

     *
     * @return mapping between schema URI and the "captured" schema text (in byte form)
     */
    public static Map<URI, byte[]> captureSchema(String initialUri, XMLEntityResolver resolver)
            throws XsdException {
        DOMInputImpl input = new DOMInputImpl();
        input.setSystemId(initialUri);
        Map<URI, byte[]> ret = captureSchema(input, resolver);

        return ret;
    }
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom.DOMInputImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.