下面列出了怎么用com.sun.org.apache.xerces.internal.xs.XSException的API类实例代码及写法,或者点击链接到github查看源代码。
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public XSLoader createXSLoader(StringList versions) throws XSException {
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
public short item(int index) throws XSException {
if (index < 0 || index >= fLength) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return fArray[index];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}
/**
* 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];
}