当前位置: 首页>>代码示例>>Java>>正文


Java XMLMessageFormatter.XML_DOMAIN属性代码示例

本文整理汇总了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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:ASCIIReader.java

示例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)});

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:UTF8Reader.java

示例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)});

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:UTF8Reader.java

示例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)});

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:UTF8Reader.java


注:本文中的com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter.XML_DOMAIN属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。