com.sun.org.apache.xerces.internal.util.MessageFormatter Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.util.MessageFormatter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UTF8Reader.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #2
Source File: ASCIIReader.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #3
Source File: UTF8Reader.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #4
Source File: UTF8Reader.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #5
Source File: ASCIIReader.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #6
Source File: ASCIIReader.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #7
Source File: UTF8Reader.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #8
Source File: ASCIIReader.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #9
Source File: ASCIIReader.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #10
Source File: ASCIIReader.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #11
Source File: UTF8Reader.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #12
Source File: UTF8Reader.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #13
Source File: UTF8Reader.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #14
Source File: ASCIIReader.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #15
Source File: UTF8Reader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #16
Source File: ASCIIReader.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #17
Source File: ASCIIReader.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #18
Source File: UTF8Reader.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #19
Source File: ASCIIReader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #20
Source File: ASCIIReader.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Constructs an ASCII reader from the specified input stream * and buffer size. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the MessageFormatter to use to message reporting. * @param locale the Locale for which messages are to be reported */ public ASCIIReader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #21
Source File: UTF8Reader.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructs a UTF-8 reader from the specified input stream, * buffer size and MessageFormatter. * * @param inputStream The input stream. * @param size The initial buffer size. * @param messageFormatter the formatter for localizing/formatting errors. * @param locale the Locale to use for messages */ public UTF8Reader(InputStream inputStream, int size, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; BufferAllocator ba = ThreadLocalBufferAllocator.getBufferAllocator(); fBuffer = ba.getByteBuffer(size); if (fBuffer == null) { fBuffer = new byte[size]; } fFormatter = messageFormatter; fLocale = locale; }
Example #22
Source File: MalformedByteSequenceException.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #23
Source File: MalformedByteSequenceException.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #24
Source File: MalformedByteSequenceException.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #25
Source File: MalformedByteSequenceException.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #26
Source File: MalformedByteSequenceException.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #27
Source File: MalformedByteSequenceException.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #28
Source File: MalformedByteSequenceException.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #29
Source File: MalformedByteSequenceException.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Constructs a MalformedByteSequenceException with the given * parameters which may be passed to an error reporter to * generate a localized string for this exception. * * @param formatter The MessageFormatter used for building the * message text for this exception. * @param locale The Locale for which messages are to be reported. * @param domain The error domain. * @param key The key of the error message. * @param arguments The replacement arguments for the error message, * if needed. */ public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments) { fFormatter = formatter; fLocale = locale; fDomain = domain; fKey = key; fArguments = arguments; }
Example #30
Source File: UTF16Reader.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Constructs a UTF-16 reader from the specified input stream, buffer and * MessageFormatter. * * @param inputStream The input stream. * @param buffer The byte buffer. * @param isBigEndian The byte order. * @param messageFormatter Given MessageFormatter * @param locale Locale to use for messages */ public UTF16Reader(InputStream inputStream, byte[] buffer, boolean isBigEndian, MessageFormatter messageFormatter, Locale locale) { fInputStream = inputStream; fBuffer = buffer; fIsBigEndian = isBigEndian; fFormatter = messageFormatter; fLocale = locale; }