/** Create a new UTF-16 reader from the InputStream. **/ private Reader createUTF16Reader(InputStream stream, boolean isBigEndian) { return new UTF16Reader(stream, (fTempString.ch.length << 1), isBigEndian, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); }
/** Create a new ASCII reader from the InputStream. **/ private Reader createASCIIReader(InputStream stream) { return new ASCIIReader(stream, fTempString.ch.length, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); }
/** Create a new UTF-8 reader from the InputStream. **/ private Reader createUTF8Reader(InputStream stream) { return new UTF8Reader(stream, fTempString.ch.length, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); }
/** * Reports an XPointer error */ protected void reportError(String key, Object[] arguments) throws XNIException { /*fErrorReporter.reportError(XPointerMessageFormatter.XPOINTER_DOMAIN, key, arguments, XMLErrorReporter.SEVERITY_ERROR); */ throw new XNIException((fErrorReporter .getMessageFormatter(XPointerMessageFormatter.XPOINTER_DOMAIN)) .formatMessage(fErrorReporter.getLocale(), key, arguments)); }
/** Create a new UTF-8 reader from the InputStream. **/ private Reader createUTF8Reader(InputStream stream) { if (DEBUG_ENCODINGS) { System.out.println("$$$ creating UTF8Reader"); } if (fTempByteBuffer == null) { fTempByteBuffer = fSmallByteBufferPool.getBuffer(); } return new UTF8Reader(stream, fTempByteBuffer, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); } // createUTF8Reader(InputStream):Reader
/** Create a new ASCII reader from the InputStream. **/ private Reader createASCIIReader(InputStream stream) { if (DEBUG_ENCODINGS) { System.out.println("$$$ creating ASCIIReader"); } if (fTempByteBuffer == null) { fTempByteBuffer = fSmallByteBufferPool.getBuffer(); } return new ASCIIReader(stream, fTempByteBuffer, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); } // createASCIIReader(InputStream):Reader
/** * Reports XPointer Errors * */ private void reportError(String key, Object[] arguments) throws XNIException { /* fXPointerErrorReporter.reportError( XPointerMessageFormatter.XPOINTER_DOMAIN, key, arguments, XMLErrorReporter.SEVERITY_ERROR); */ throw new XNIException((fErrorReporter .getMessageFormatter(XPointerMessageFormatter.XPOINTER_DOMAIN)) .formatMessage(fErrorReporter.getLocale(), key, arguments)); }
MessageFormatter aFormatter = fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN); Locale aLocale = fErrorReporter.getLocale(); throw new IOException( aFormatter.formatMessage( aLocale, "EncodingDeclInvalid",
Locale locale = fErrorReporter.getLocale(); fAttributeChecker.reset(fSymbolTable); fAttributeGroupTraverser.reset(fSymbolTable, fValidateAnnotations, locale);
/** Create a new UTF-16 reader from the InputStream. **/ private Reader createUTF16Reader(InputStream stream, boolean isBigEndian) { if (DEBUG_ENCODINGS) { System.out.println("$$$ creating UTF16Reader"); } if (fTempByteBuffer == null) { fTempByteBuffer = fLargeByteBufferPool.getBuffer(); } // The cached buffer is too small, we need a larger one. else if (fTempByteBuffer.length == fBufferSize) { fSmallByteBufferPool.returnBuffer(fTempByteBuffer); fTempByteBuffer = fLargeByteBufferPool.getBuffer(); } return new UTF16Reader(stream, fTempByteBuffer, isBigEndian, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale()); } // createUTF16Reader(InputStream):Reader
throw new XMLConfigurationException( XMLConfigurationException.NOT_SUPPORTED, mf.formatMessage(fErrorReporter.getLocale(), "jaxp12-schema-source-type.1", new Object [] {val != null ? val.getClass().getName() : "null"}));
throw new XMLConfigurationException( XMLConfigurationException.NOT_SUPPORTED, mf.formatMessage(fErrorReporter.getLocale(), "jaxp12-schema-source-type.2", new Object [] {componentType.getName()})); throw new java.lang.IllegalArgumentException(mf.formatMessage(fErrorReporter.getLocale(), "jaxp12-schema-source-ns", null));
private void createAnnotationValidator() { fAnnotationValidator = new XML11Configuration(); fGrammarBucketAdapter = new XSAnnotationGrammarPool(fSchemaVersion); fAnnotationValidator.setFeature(VALIDATION, true); fAnnotationValidator.setFeature(XMLSCHEMA_VALIDATION, true); fAnnotationValidator.setProperty(XMLGRAMMAR_POOL, fGrammarBucketAdapter); /** Set error handler. **/ XMLErrorHandler errorHandler = fErrorReporter.getErrorHandler(); fAnnotationValidator.setProperty(ERROR_HANDLER, (errorHandler != null) ? errorHandler : new DefaultErrorHandler()); /** Set locale. **/ Locale locale = fErrorReporter.getLocale(); fAnnotationValidator.setProperty(LOCALE, locale); }
Locale locale = (fErrorReporter != null) ? fErrorReporter.getLocale() : null; String reason = fXIncludeMessageFormatter.formatMessage(locale, "XPointerStreamability", null); reportResourceError("XMLResourceError", new Object[] { href, reason }); Locale locale = (fErrorReporter != null) ? fErrorReporter.getLocale() : null; String reason = fXIncludeMessageFormatter.formatMessage(locale, "XPointerResolutionUnsuccessful", null); reportResourceError("XMLResourceError", new Object[] {href, reason});
Locale currentLocale = fErrorReporter.getLocale(); if (currentLocale != fSchemaParser.getProperty(LOCALE)) { fSchemaParser.setProperty(LOCALE, currentLocale);