Java Code Examples for com.sun.org.apache.xerces.internal.xs.XSException#INDEX_SIZE_ERR

The following examples show how to use com.sun.org.apache.xerces.internal.xs.XSException#INDEX_SIZE_ERR . 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: ShortListImpl.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 2
Source File: ShortListImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 3
Source File: ShortListImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 4
Source File: ShortListImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 5
Source File: ShortListImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 6
Source File: ShortListImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 7
Source File: ShortListImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 8
Source File: ShortListImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 9
Source File: ShortListImpl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
public short item(int index) throws XSException {
    if (index < 0 || index >= fLength) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return fArray[index];
}
 
Example 10
Source File: ByteListImpl.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 11
Source File: ByteListImpl.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 12
Source File: ByteListImpl.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 13
Source File: ByteListImpl.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 14
Source File: ByteListImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 15
Source File: ByteListImpl.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 16
Source File: ByteListImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 17
Source File: ByteListImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 18
Source File: ByteListImpl.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 19
Source File: ByteListImpl.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}
 
Example 20
Source File: ByteListImpl.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the <code>index</code>th item in the collection. The index
 * starts at 0.
 * @param index  index into the collection.
 * @return  The <code>byte</code> at the <code>index</code>th
 *   position in the <code>ByteList</code>.
 * @exception XSException
 *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the
 *   number of objects in the list.
 */
public byte item(int index)
    throws XSException {

    if(index < 0 || index > data.length - 1) {
        throw new XSException(XSException.INDEX_SIZE_ERR, null);
    }
    return data[index];
}