public ServiceDocumentImpl parseXml(final InputStream in) throws EntityProviderException { return readServiceDokument(XmlHelper.createStreamReader(in)); } }
public ServiceDocumentImpl parseXml(final InputStream in) throws EntityProviderException { return readServiceDokument(XmlHelper.createStreamReader(in)); } }
public ServiceDocumentImpl parseXml(final InputStream in) throws EntityProviderException { return readServiceDokument(XmlHelper.createStreamReader(in)); } }
public EdmxProvider parse(final InputStream in, final boolean validate) throws EntityProviderException { XmlMetadataConsumer parser = new XmlMetadataConsumer(); XMLStreamReader streamReader = XmlHelper.createStreamReader(in); dataServices = parser.readMetadata(streamReader, validate); return this; }
public EdmxProvider parse(final InputStream in, final boolean validate) throws EntityProviderException { XmlMetadataConsumer parser = new XmlMetadataConsumer(); XMLStreamReader streamReader = XmlHelper.createStreamReader(in); dataServices = parser.readMetadata(streamReader, validate); return this; }
public EdmxProvider parse(final InputStream in, final boolean validate) throws EntityProviderException { XmlMetadataConsumer parser = new XmlMetadataConsumer(); XMLStreamReader streamReader = XmlHelper.createStreamReader(in); dataServices = parser.readMetadata(streamReader, validate); return this; }
public List<String> readLinks(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLinks(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } } }
public String readLink(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLink(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public List<String> readLinks(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLinks(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public String readLink(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLink(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public String readLink(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLink(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public Map<String, Object> readProperty(final EntityPropertyInfo propertyInfo, final InputStream content, final EntityProviderReadProperties readProperties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); return new XmlPropertyConsumer().readProperty(reader, propertyInfo, readProperties); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public Object readCollection(final EntityPropertyInfo info, InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); return new XmlPropertyConsumer().readCollection(reader, info, properties); } catch (final EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (final XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED .addContent(e.getClass().getSimpleName()), e); } } } } }
public Map<String, Object> readProperty(final EntityPropertyInfo propertyInfo, final InputStream content, final EntityProviderReadProperties readProperties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); return new XmlPropertyConsumer().readProperty(reader, propertyInfo, readProperties); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public Object readCollection(final EntityPropertyInfo info, InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); return new XmlPropertyConsumer().readCollection(reader, info, properties); } catch (final EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (final XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED .addContent(e.getClass().getSimpleName()), e); } } } } }
public List<String> readLinks(final EdmEntitySet entitySet, final Object content) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; XmlLinkConsumer xlc = new XmlLinkConsumer(); try { reader = XmlHelper.createStreamReader(content); return xlc.readLinks(reader, entitySet); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } } }
public ODataDeltaFeed readFeed(final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); EntityInfoAggregator eia = EntityInfoAggregator.create(entitySet); XmlFeedConsumer xfc = new XmlFeedConsumer(); return xfc.readFeed(reader, eia, properties); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); EntityInfoAggregator eia = EntityInfoAggregator.create(entitySet); return new XmlEntryConsumer().readEntry(reader, eia, properties, false); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
public ODataFeed readFeed(final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { XMLStreamReader reader = null; EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(content); EntityInfoAggregator eia = EntityInfoAggregator.create(entitySet); XmlFeedConsumer xfc = new XmlFeedConsumer(); return xfc.readFeed(reader, eia, properties); } catch (EntityProviderException e) { cachedException = e; throw cachedException; } finally {// NOPMD (suppress DoNotThrowExceptionInFinally) if (reader != null) { try { reader.close(); } catch (XMLStreamException e) { if (cachedException != null) { throw cachedException; } else { throw new EntityProviderException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } } } } }
EntityProviderException cachedException = null; try { reader = XmlHelper.createStreamReader(entityStream.getContent()); return new XmlPropertyDeserializer().readCollection(reader, info, entityStream.getReadProperties()); } catch (final EntityProviderException e) {