Package org.apache.sis.internal.jaxb

Examples of org.apache.sis.internal.jaxb.Context


     * @throws URISyntaxException if the given value contains an invalid URI.
     */
    @Override
    public URI unmarshal(final GO_URL value) throws URISyntaxException {
        if (value != null) {
            final Context context = Context.current();
            return Context.converter(context).toURI(context, value.uri);
        }
        return null;
    }
View Full Code Here


     */
    private void marshal(final Object object, XMLStreamWriter output, final FilterVersion version)
            throws XMLStreamException, JAXBException
    {
        output = new FilteredStreamWriter(output, version);
        final Context context = begin();
        try {
            marshaller.marshal(object, output);
        } finally {
            context.finish();
        }
        output.close(); // Despite its name, this method does not close the underlying output stream.
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output, getEncoding()), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

            }
        } catch (Exception e) { // (IOException | XMLStreamException) on the JDK7 branch.
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

    public void marshal(final Object object, XMLStreamWriter output) throws JAXBException {
        final FilterVersion version = getFilterVersion();
        if (version != null) {
            output = new FilteredStreamWriter(output, version);
        }
        final Context context = begin();
        try {
            marshaller.marshal(object, output);
        } finally {
            context.finish();
        }
    }
View Full Code Here

            marshal(object, XMLOutputFactory.createXMLStreamWriter(output), version);
        } catch (XMLStreamException e) {
            throw new JAXBException(e);
        } else {
            // Marshalling to the default GML version.
            final Context context = begin();
            try {
                marshaller.marshal(object, output);
            } finally {
                context.finish();
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.jaxb.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.