- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.<init>()
方法的一些代码示例,展示了XMLStreamReaderWrapper.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLStreamReaderWrapper.<init>()
方法的具体详情如下:
包路径:org.deegree.commons.xml.stax.XMLStreamReaderWrapper
类名称:XMLStreamReaderWrapper
方法名:<init>
暂无
代码示例来源:origin: deegree/deegree3
@Override
public XMLStreamReaderWrapper work( InputStream in )
throws IOException {
try {
return new XMLStreamReaderWrapper( XmlHttpUtils.xmlInputFactory.createXMLStreamReader( in ),
"Post response" );
} catch ( XMLStreamException e ) {
throw new IOException( "Error creating XMLStreamReader for POST response: " + e.getMessage() );
}
}
};
代码示例来源:origin: deegree/deegree3
@Override
public XMLStreamReader getValueAsXMLStream()
throws IOException {
XMLStreamReader reader = null;
try {
reader = XMLInputFactory.newInstance().createXMLStreamReader( getValueAsBinaryStream() );
reader.next();
} catch ( Exception e ) {
throw new IOException( e.getMessage(), e );
}
return new XMLStreamReaderWrapper( reader, XMLAdapter.DEFAULT_URL );
}
代码示例来源:origin: deegree/deegree3
/**
* Creates a new {@link GMLStreamReader} instance for reading GML of the specified version.
*
* @param version
* GML version, must not be <code>null</code>
* @param url
* URL used to read the input, must not be <code>null</code>
* @return initialized {@link GMLStreamReader}
* @throws IOException
* @throws FactoryConfigurationError
* @throws XMLStreamException
*/
public static GMLStreamReader createGMLStreamReader( GMLVersion version, URL url )
throws XMLStreamException, FactoryConfigurationError, IOException {
URLConnection conn = ProxySettings.openURLConnection( url );
InputStream is = conn.getInputStream();
XMLStreamReader xmlStream = XMLInputFactory.newInstance().createXMLStreamReader( is );
// skip START_DOCUMENT event
xmlStream.nextTag();
return new GMLStreamReader( version, new XMLStreamReaderWrapper( xmlStream, url.toString() ) );
}
}
代码示例来源:origin: deegree/deegree3
private static Geometry parseGeomOrEnvelope( XMLStreamReader xmlStream )
throws XMLStreamException {
GMLGeometryReader gmlReader = GMLGeometryVersionHelper.getGeometryReader( xmlStream.getName(), xmlStream );
try {
return gmlReader.parseGeometryOrEnvelope( new XMLStreamReaderWrapper( xmlStream, null ), null );
} catch ( XMLParsingException e ) {
throw e;
} catch ( XMLStreamException e ) {
throw e;
} catch ( Throwable t ) {
t.printStackTrace();
throw new XMLParsingException( xmlStream, t.getMessage() );
}
}
代码示例来源:origin: deegree/deegree3
/**
* Creates a new {@link GMLStreamReader} instance for reading GML of the specified version.
*
* @param version
* GML version, must not be <code>null</code>
* @param xmlStream
* XML stream used to read the input, must not be <code>null</code> and either point to a
* <code>START_DOCUMENT</code> event or a <code>START_ELEMENT</code> event of a GML object element
* @return initialized {@link GMLStreamReader}
* @throws XMLStreamException
*/
public static GMLStreamReader createGMLStreamReader( GMLVersion version, XMLStreamReader xmlStream )
throws XMLStreamException {
// TODO remove this (get rid of deprecated GML3GeometryReader constructor first)
if (xmlStream == null) {
return new GMLStreamReader( version, null );
}
if ( xmlStream.getEventType() == XMLStreamConstants.START_DOCUMENT ) {
xmlStream.nextTag();
}
if ( xmlStream instanceof XMLStreamReaderWrapper ) {
return new GMLStreamReader( version, (XMLStreamReaderWrapper) xmlStream );
}
return new GMLStreamReader( version, new XMLStreamReaderWrapper( xmlStream, null ) );
}
代码示例来源:origin: deegree/deegree3
private Filter parseFilter200( OMElement filterEl ) {
Filter filter = null;
try {
// TODO remove usage of wrapper (necessary at the moment to work around problems with AXIOM's
// XMLStreamReader)
XMLStreamReader xmlStream = new XMLStreamReaderWrapper( filterEl.getXMLStreamReaderWithoutCaching(), null );
// skip START_DOCUMENT
xmlStream.nextTag();
filter = Filter200XMLDecoder.parse( xmlStream );
} catch ( XMLStreamException e ) {
e.printStackTrace();
throw new XMLParsingException( this, filterEl, e.getMessage() );
}
return filter;
}
代码示例来源:origin: deegree/deegree3
/**
* Creates a new {@link GmlStreamGeometryValidator} instance.
*
* @param gmlStream
* GML stream, must not be <code>null</code>
* @param eventHandler
* event handler that controls the reaction on topological events and genearates validity reports
*/
public GmlStreamGeometryValidator( GMLStreamReader gmlStream, GmlGeometryValidationEventHandler eventHandler ) {
xmlStream = new XMLStreamReaderWrapper( gmlStream.getXMLReader(),
gmlStream.getXMLReader().getLocation().getSystemId() );
geomParser = gmlStream.getGeometryReader();
this.gmlStream = gmlStream;
this.gmlErrorHandler = eventHandler;
}
代码示例来源:origin: deegree/deegree3
private Property recreatePropertyFromGml( final PropertyType pt, final GenericXMLElement particle ) {
try {
final GMLSchemaInfoSet gmlSchema = ft.getSchema().getGMLSchema();
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
final XMLStreamWriter xmlWriter = XMLOutputFactory.newInstance().createXMLStreamWriter( bos );
final GMLVersion version = ft.getSchema().getGMLSchema().getVersion();
final GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( version, xmlWriter );
gmlWriter.setNamespaceBindings( gmlSchema.getNamespacePrefixes() );
final GmlXlinkOptions resolveState = new GmlXlinkOptions();
gmlWriter.getFeatureWriter().export( particle, resolveState );
gmlWriter.close();
xmlWriter.close();
bos.close();
final InputStream is = new ByteArrayInputStream( bos.toByteArray() );
final XMLStreamReader xmlReader = XMLInputFactory.newInstance().createXMLStreamReader( is );
final GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( version, xmlReader );
gmlReader.setApplicationSchema( ft.getSchema() );
gmlReader.setLaxMode( true );
final Property property = gmlReader.getFeatureReader().parseProperty( new XMLStreamReaderWrapper(
xmlReader,
null ),
pt, null );
return property;
} catch ( final Exception e ) {
LOG.error( e.getMessage(), e );
}
return new GenericProperty( pt, particle.getName(), null, particle.getAttributes(), particle.getChildren() );
}
代码示例来源:origin: deegree/deegree3
StringReader sr = new StringReader( filters[i] );
XMLAdapter adapter = new XMLAdapter( sr );
XMLStreamReaderWrapper streamWrapper = new XMLStreamReaderWrapper(
adapter.getRootElement().getXMLStreamReaderWithoutCaching(),
adapter.getSystemId() );
代码示例来源:origin: deegree/deegree3
private Query parseLock110( OMElement lockElement ) {
String handle = getNodeAsString( lockElement, new XPath( "@handle", nsContext ), null );
// TODO can there be an alias for the typeName ??
TypeName typeName = new TypeName( getRequiredNodeAsQName( lockElement, new XPath( "@typeName", nsContext ) ),
null );
Filter filter = null;
OMElement filterEl = lockElement.getFirstChildWithName( new QName( OGCNS, "Filter" ) );
if ( filterEl != null ) {
try {
// TODO remove usage of wrapper (necessary at the moment to work around problems with AXIOM's
// XMLStreamReader)
XMLStreamReader xmlStream = new XMLStreamReaderWrapper( filterEl.getXMLStreamReaderWithoutCaching(),
null );
// skip START_DOCUMENT
xmlStream.nextTag();
filter = Filter110XMLDecoder.parse( xmlStream );
} catch ( XMLStreamException e ) {
e.printStackTrace();
throw new XMLParsingException( this, filterEl, e.getMessage() );
}
}
return new FilterQuery( handle, new TypeName[] { typeName }, null, null, null, null, filter );
}
代码示例来源:origin: deegree/deegree3
XMLStreamReaderWrapper streamWrapper = new XMLStreamReaderWrapper(
adapter.getRootElement().getXMLStreamReaderWithoutCaching(),
adapter.getSystemId() );
代码示例来源:origin: deegree/deegree3
private Query parseLock100( OMElement lockElement ) {
String handle = getNodeAsString( lockElement, new XPath( "@handle", nsContext ), null );
// TODO can there be an alias for the typeName ??
TypeName typeName = new TypeName( getRequiredNodeAsQName( lockElement, new XPath( "@typeName", nsContext ) ),
null );
Filter filter = null;
OMElement filterEl = lockElement.getFirstChildWithName( new QName( OGCNS, "Filter" ) );
if ( filterEl != null ) {
try {
// TODO remove usage of wrapper (necessary at the moment to work around problems with AXIOM's
// XMLStreamReader)
XMLStreamReader xmlStream = new XMLStreamReaderWrapper( filterEl.getXMLStreamReaderWithoutCaching(),
null );
// skip START_DOCUMENT
xmlStream.nextTag();
// TODO use filter 1.0.0 parser
filter = Filter100XMLDecoder.parse( xmlStream );
} catch ( XMLStreamException e ) {
e.printStackTrace();
throw new XMLParsingException( this, filterEl, e.getMessage() );
}
}
return new FilterQuery( handle, new TypeName[] { typeName }, null, null, null, null, filter );
}
代码示例来源:origin: deegree/deegree3
XMLStreamReaderWrapper streamWrapper = new XMLStreamReaderWrapper(
adapter.getRootElement().getXMLStreamReaderWithoutCaching(),
adapter.getSystemId() );
代码示例来源:origin: deegree/deegree3
XMLStreamReader xmlStream = new XMLStreamReaderWrapper(
filterEl.getXMLStreamReaderWithoutCaching(),
null );
代码示例来源:origin: deegree/deegree3
XMLStreamReader xmlStream = new XMLStreamReaderWrapper(
filterEl.getXMLStreamReaderWithoutCaching(),
null );
代码示例来源:origin: deegree/deegree3
for ( OMElement functionEl : functionElements ) {
try {
XMLStreamReaderWrapper xmlStream = new XMLStreamReaderWrapper(
functionEl.getXMLStreamReaderWithoutCaching(),
getSystemId() );
XMLStreamReader xmlStream = new XMLStreamReaderWrapper(
filterEl.getXMLStreamReaderWithoutCaching(),
null );
代码示例来源:origin: deegree/deegree3
XMLStreamReader xmlStream = new XMLStreamReaderWrapper( filterElUpdate.getXMLStreamReaderWithoutCaching(),
null );
代码示例来源:origin: deegree/deegree3
Property prop = featureReader.parseProperty( new XMLStreamReaderWrapper( xmlStream, null ), pt,
crs );
代码示例来源:origin: deegree/deegree3
XMLStreamReader xmlStream = new XMLStreamReaderWrapper(
filterEl.getXMLStreamReaderWithoutCaching(),
null );
代码示例来源:origin: deegree/deegree3
XMLStreamReaderWrapper wrapper = new XMLStreamReaderWrapper( gmlStream.getXMLReader(), null );
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getText()方法的一些代码示例,展示了XMLStreamReaderW
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getSystemId()方法的一些代码示例,展示了XMLStreamRea
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.require()方法的一些代码示例,展示了XMLStreamReaderW
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getNamespaceURI()方法的一些代码示例,展示了XMLStrea
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.nextTag()方法的一些代码示例,展示了XMLStreamReaderW
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getElementText()方法的一些代码示例,展示了XMLStream
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getEventType()方法的一些代码示例,展示了XMLStreamRe
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.next()方法的一些代码示例,展示了XMLStreamReaderWrap
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getCurrentEventInfo()方法的一些代码示例,展示了XMLS
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getLocation()方法的一些代码示例,展示了XMLStreamRea
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.getElementTextAsDouble()方法的一些代码示例,展示了X
本文整理了Java中org.deegree.commons.xml.stax.XMLStreamReaderWrapper.()方法的一些代码示例,展示了XMLStreamReaderWrapper.
我是一名优秀的程序员,十分优秀!