本文整理了Java中com.ctc.wstx.exc.WstxIOException.<init>()
方法的一些代码示例,展示了WstxIOException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxIOException.<init>()
方法的具体详情如下:
包路径:com.ctc.wstx.exc.WstxIOException
类名称:WstxIOException
方法名:<init>
暂无
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected void throwFromIOE(IOException ioe)
throws WstxException
{
throw new WstxIOException(ioe);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected static void throwFromIOE(IOException ioe)
throws XMLStreamException
{
throw new WstxIOException(ioe);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void output(char c)
throws XMLStreamException
{
if (mIsFlattening > 0) {
try {
mWriter.write(c);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void flush(char[] buf, int upUntil)
throws XMLStreamException
{
if (mFlattenStart < upUntil) {
if (mIsFlattening > 0) {
try {
mWriter.write(buf, mFlattenStart, upUntil - mFlattenStart);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
mFlattenStart = upUntil;
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
/**
* Method called when explicit output has to be done for flatten output:
* this is usually done when there's need to do speculative checks
* before it's known if some chars are output (when suppressing comments
* or conditional sections)
*/
public void output(String output)
throws XMLStreamException
{
if (mIsFlattening > 0) {
try {
mWriter.write(output);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLValidationSchema createSchema(File f)
throws XMLStreamException
{
try {
return createSchema(f.toURL());
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected final void doWriteStartTag(String localName)
throws XMLStreamException
{
mAnyOutput = true;
mStartElementOpen = true;
try {
mWriter.writeStartTagStart(localName);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeAsEncodedUnicode(Writer w)
throws XMLStreamException
{
try {
writeEnc(w);
} catch (IOException ie) {
throw new WstxIOException(ie);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected void throwOutputError(String msg)
throws XMLStreamException
{
// First, let's flush any output we may have, to make debugging easier
try {
flush();
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
throw new XMLStreamException(msg);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void flush()
throws XMLStreamException
{
/* Note: there have been changes to exact scope of flushing
* (with Woodstox versions 2.x and 3.x); but the current
* one of just flushing the underlying OutputStream or Writer
* should be the interpretation compatible with the Stax specs.
*/
try {
mWriter.flush();
} catch (IOException ie) {
throw new WstxIOException(ie);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLValidationSchema createSchema(URL url)
throws XMLStreamException
{
try {
InputStream in = URLUtil.inputStreamFromURL(url);
InputSource src = new InputSource(in);
src.setSystemId(url.toExternalForm());
return loadSchema(src, url);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeRaw(String text)
throws XMLStreamException
{
mAnyOutput = true;
if (mStartElementOpen) {
closeStartElement(mEmptyElement);
}
try {
mWriter.writeRaw(text, 0, text.length());
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLValidationSchema createSchema(File f)
throws XMLStreamException
{
ReaderConfig rcfg = createPrivateReaderConfig();
try {
URL url = f.toURL();
return doCreateSchema(rcfg, StreamBootstrapper.getInstance
(null, null, new FileInputStream(f)),
null, url.toExternalForm(), url);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeDTD(String rootName, String systemId, String publicId,
String internalSubset)
throws XMLStreamException
{
verifyWriteDTD();
mDtdRootElem = rootName;
try {
mWriter.writeDTD(rootName, systemId, publicId, internalSubset);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected final void doWriteStartTag(String prefix, String localName)
throws XMLStreamException
{
mAnyOutput = true;
mStartElementOpen = true;
try {
boolean hasPrefix = (prefix != null && prefix.length() > 0);
if (hasPrefix) {
mWriter.writeStartTagStart(prefix, localName);
} else {
mWriter.writeStartTagStart(localName);
}
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeRaw(char[] text, int start, int offset)
throws XMLStreamException
{
mAnyOutput = true;
if (mStartElementOpen) {
closeStartElement(mEmptyElement);
}
try {
mWriter.writeRaw(text, start, offset);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeRaw(String text, int start, int offset)
throws XMLStreamException
{
mAnyOutput = true;
if (mStartElementOpen) {
closeStartElement(mEmptyElement);
}
try {
mWriter.writeRaw(text, start, offset);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public void writeDTD(String dtd)
throws XMLStreamException
{
verifyWriteDTD();
mDtdRootElem = ""; // marker to verify only one is output
try {
mWriter.writeDTD(dtd);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
/* 20-Dec-2005, TSa: Should we try to decipher what was actually
* written, for validation?
*/
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected XMLStreamReader2 createSR(ReaderConfig cfg, URL src,
boolean forER, boolean autoCloseInput)
throws XMLStreamException
{
final SystemId systemId = SystemId.construct(src);
try {
return createSR(cfg, systemId, URLUtil.inputStreamFromURL(src),
forER, autoCloseInput);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLValidationSchema createSchema(URL url)
throws XMLStreamException
{
ReaderConfig rcfg = createPrivateReaderConfig();
try {
InputStream in = URLUtil.inputStreamFromURL(url);
return doCreateSchema(rcfg, StreamBootstrapper.getInstance
(null, null, in),
null, url.toExternalForm(), url);
} catch (IOException ioe) {
throw new WstxIOException(ioe);
}
}
内容来源于网络,如有侵权,请联系作者删除!