equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
358 * XMLReader xmlReader = saxSource.getXMLReader(); |
358 * XMLReader xmlReader = saxSource.getXMLReader(); |
359 * xmlReader.setContentHandler(myHandler); |
359 * xmlReader.setContentHandler(myHandler); |
360 * xmlReader.parse(saxSource.getInputSource()); |
360 * xmlReader.parse(saxSource.getInputSource()); |
361 * </pre> |
361 * </pre> |
362 * |
362 * |
|
363 * @param <T> the type of the class modeled by this Class object |
363 * @param sourceClass The class of the source, or null. |
364 * @param sourceClass The class of the source, or null. |
364 * If the class is null, a vendor specifc Source implementation will be returned. |
365 * If the class is null, a vendor specifc Source implementation will be returned. |
365 * The following classes are supported at a minimum: |
366 * The following classes are supported at a minimum: |
366 * <pre> |
367 * <pre> |
367 * javax.xml.transform.dom.DOMSource - returns a DOMSource |
368 * javax.xml.transform.dom.DOMSource - returns a DOMSource |
399 * contentHandler.startDocument(); |
400 * contentHandler.startDocument(); |
400 * // set the XML elements and attributes into the result |
401 * // set the XML elements and attributes into the result |
401 * contentHandler.endDocument(); |
402 * contentHandler.endDocument(); |
402 * </pre> |
403 * </pre> |
403 * |
404 * |
|
405 * @param <T> the type of the class modeled by this Class object |
404 * @param resultClass The class of the result, or null. |
406 * @param resultClass The class of the result, or null. |
405 * If resultClass is null, a vendor specific Result implementation will be returned. |
407 * If resultClass is null, a vendor specific Result implementation will be returned. |
406 * The following classes are supported at a minimum: |
408 * The following classes are supported at a minimum: |
407 * <pre> |
409 * <pre> |
408 * javax.xml.transform.dom.DOMResult - returns a DOMResult |
410 * javax.xml.transform.dom.DOMResult - returns a DOMResult |