/** * Java to KML * The object graph is marshalled to a Writer object. * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final Writer writer) { try { m = this.createMarshaller(); m.marshal(this, writer); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is printed to the console. * (Nothing is saved, nor saved. Just printed.) * * */ public boolean marshal() { try { m = this.createMarshaller(); m.marshal(this, System.out); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is marshalled to a Contenthandler object. * Useful if marshaller cis needed to generate CDATA blocks. * {@link https://jaxb.dev.java.net/faq/} * {@link http://code.google.com/p/javaapiforkml/issues/detail?id=7} * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final ContentHandler contenthandler) { try { m = this.createMarshaller(); m.marshal(this, contenthandler); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is marshalled to a Contenthandler object. * Useful if marshaller cis needed to generate CDATA blocks. * {@link https://jaxb.dev.java.net/faq/} * {@link http://code.google.com/p/javaapiforkml/issues/detail?id=7} * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final ContentHandler contenthandler) { try { m = this.createMarshaller(); m.marshal(this, contenthandler); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is marshalled to a Writer object. * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final Writer writer) { try { m = this.createMarshaller(); m.marshal(this, writer); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is printed to the console. * (Nothing is saved, nor saved. Just printed.) * * */ public boolean marshal() { try { m = this.createMarshaller(); m.marshal(this, System.out); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is marshalled to an OutputStream object. * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final OutputStream outputstream) throws FileNotFoundException { try { m = this.createMarshaller(); m.marshal(this, outputstream); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }
/** * Java to KML * The object graph is marshalled to an OutputStream object. * The object is not saved as a zipped .kmz file. * @see marshalKmz(String, Kml...) * */ public boolean marshal(final OutputStream outputstream) throws FileNotFoundException { try { m = this.createMarshaller(); m.marshal(this, outputstream); return true; } catch (JAXBException _x) { _x.printStackTrace(); return false; } }