/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLOutputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxOutputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLInputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxInputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations provided with the system * property <em>javax.xml.stream.XMLInputFactory</em>, implementations configured in <em>lib/stax.properties</em> or * registered with the Service API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ @SuppressWarnings("unchecked") public static Class<? extends XMLInputFactory> getStaxInputFactory() throws ClassNotFoundException { if (isIBM()) { return (Class<? extends XMLInputFactory>)Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return (Class<? extends XMLInputFactory>)Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } }
/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations provided with the system * property <em>javax.xml.stream.XMLOutputFactory</em>, implementations configured in <em>lib/stax.properties</em> * or registered with the Service API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ @SuppressWarnings("unchecked") public static Class<? extends XMLOutputFactory> getStaxOutputFactory() throws ClassNotFoundException { if (isIBM()) { return (Class<? extends XMLOutputFactory>)Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return (Class<? extends XMLOutputFactory>)Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } }
/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLOutputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxOutputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } } return null; }
/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLOutputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxOutputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLInputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxInputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLInputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxInputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } } return null; }
/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLOutputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxOutputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLInputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxInputFactory() throws ClassNotFoundException { if (isVersion(6)) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } } return null; }
/** * Get the XMLInputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLInputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLInputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLInputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxInputFactory() throws ClassNotFoundException { if (is16()) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLInputFactoryImpl"); } } return null; }
/** * Get the XMLOutputFactory implementation used normally by the current Java runtime as * standard. * <p> * In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations * provided with the system property <em>javax.xml.stream.XMLOutputFactory</em>, * implementations configured in <em>lib/stax.properties</em> or registered with the Service * API. * </p> * * @return the XMLOutputFactory implementation or null * @throws ClassNotFoundException if the standard class cannot be found * @since 1.4.5 */ public static Class getStaxOutputFactory() throws ClassNotFoundException { if (is16()) { if (isIBM()) { return Class.forName("com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl"); } else { return Class.forName("com.sun.xml.internal.stream.XMLOutputFactoryImpl"); } } return null; }
private boolean canUseSun14ReflectionProvider() { return (isSun() || isApple() || isHPUX() || isIBM() || isBlackdown() || isBEAWithUnsafeSupport() || isHitachi() || isSAP() || isDiablo()) && is14() && loadClass("sun.misc.Unsafe") != null; }
private boolean canUseSun14ReflectionProvider() { return (isSun() || isApple() || isHPUX() || isIBM() || isBlackdown() || isBEAWithUnsafeSupport() || isOracle() || isHitachi() || isSAP() || isDiablo()) && is14() && loadClass("sun.misc.Unsafe") != null; }
private boolean canUseSun14ReflectionProvider() { return (isSun() || isOracle() || isApple() || isHPUX() || isIBM() || isBlackdown() || isBEAWithUnsafeSupport() || isHitachi() || isSAP() || isDiablo()) && is14() && loadClass("sun.misc.Unsafe") != null; }