本文整理汇总了Java中com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter.XML_DOMAIN属性的典型用法代码示例。如果您正苦于以下问题:Java XMLMessageFormatter.XML_DOMAIN属性的具体用法?Java XMLMessageFormatter.XML_DOMAIN怎么用?Java XMLMessageFormatter.XML_DOMAIN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter
的用法示例。
在下文中一共展示了XMLMessageFormatter.XML_DOMAIN属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
/**
* Read characters into a portion of an array. This method will block
* until some input is available, an I/O error occurs, or the end of the
* stream is reached.
*
* @param ch Destination buffer
* @param offset Offset at which to start storing characters
* @param length Maximum number of characters to read
*
* @return The number of characters read, or -1 if the end of the
* stream has been reached
*
* @exception IOException If an I/O error occurs
*/
public int read(char ch[], int offset, int length) throws IOException {
if (length > fBuffer.length) {
length = fBuffer.length;
}
int count = fInputStream.read(fBuffer, 0, length);
for (int i = 0; i < count; i++) {
int b0 = fBuffer[i];
if (b0 < 0) {
throw new MalformedByteSequenceException(fFormatter,
fLocale, XMLMessageFormatter.XML_DOMAIN,
"InvalidASCII", new Object [] {Integer.toString(b0 & 0x0FF)});
}
ch[offset + i] = (char)b0;
}
return count;
}
示例2: expectedByte
/** Throws an exception for expected byte. */
private void expectedByte(int position, int count)
throws MalformedByteSequenceException {
throw new MalformedByteSequenceException(fFormatter,
fLocale,
XMLMessageFormatter.XML_DOMAIN,
"ExpectedByte",
new Object[] {Integer.toString(position), Integer.toString(count)});
}
示例3: invalidByte
/** Throws an exception for invalid byte. */
private void invalidByte(int position, int count, int c)
throws MalformedByteSequenceException {
throw new MalformedByteSequenceException(fFormatter,
fLocale,
XMLMessageFormatter.XML_DOMAIN,
"InvalidByte",
new Object [] {Integer.toString(position), Integer.toString(count)});
}
示例4: invalidSurrogate
/** Throws an exception for invalid surrogate bits. */
private void invalidSurrogate(int uuuuu) throws MalformedByteSequenceException {
throw new MalformedByteSequenceException(fFormatter,
fLocale,
XMLMessageFormatter.XML_DOMAIN,
"InvalidHighSurrogate",
new Object[] {Integer.toHexString(uuuuu)});
}