Class

com.scalakml.io

KmzPrintWriter

Related Doc: package io

Permalink

class KmzPrintWriter extends AnyRef

Writer to write the kml elements as xml to a kmz file

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KmzPrintWriter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KmzPrintWriter(kmzFileName: String)

    Permalink

    Writer to write the kml elements as xml to a kmz file

    Writer to write the kml elements as xml to a kmz file

    kmzFileName

    the kmz file name to write to

  2. new KmzPrintWriter(kmzFileName: Option[String] = None, xmlExtractor: Option[XmlExtractor] = Some(KmlToXml), encoding: String = "UTF-8", xmlDecl: Boolean = true, doctype: DocType = null)

    Permalink

    kmzFileName

    the kmz file name to write to

    encoding

    the encoding

    xmlDecl

    if true, write xml declaration

    doctype

    if not null, write doctype declaration

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addResourceFile(filenameInKmzFile: String, resourceFilename: String): Unit

    Permalink

    add a resource file to the set that will be written to the kmz file.

    add a resource file to the set that will be written to the kmz file. This needs to be done before the kmz file is written.

    filenameInKmzFile

    the name the resource file will have in the kmz file

    resourceFilename

    the name of the file containing the resource

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getResourceFiles: Map[String, FileInputStream]

    Permalink

    returns the resource files

    returns the resource files

    returns

    the resource files as a collection.mutable.Map.empty[String, FileInput]

  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def writeAllToKmz[A](kmlMap: Map[String, A] = Map.empty[String, Option[A]], pretty: PrettyPrinter = null)(implicit arg0: KmlToXml[A]): Unit

    Permalink

    writes all input kml objects and any resource files to the designated kmz file.

    writes all input kml objects and any resource files to the designated kmz file. The kmz file has to exist, it is set during construction of a KmzPrintWriter. For example: new KmzPrintWriter("test.kmz"), cannot have new KmzPrintWriter(). Each kml object must have a corresponding file name in the input kmlMap.

    Note: if the input kmlMap is empty, only the resource files will be written to the kmz file.

    kmlMap

    the Map of file names (keys) and kml objects (values)

    pretty

    the optional pretty printer to use

  23. def writeToKmz[A](kml: A, pretty: PrettyPrinter = null)(implicit arg0: KmlToXml[A]): Unit

    Permalink

    writes the kml object and any resource files to a kmz file.

    writes the kml object and any resource files to a kmz file. The kmz file has to exist, it is set during construction of a KmzPrintWriter. For example: new KmzPrintWriter("test.kmz"), cannot have new KmzPrintWriter(). The kml file inside the kmz will be named the same as the kmz file but with the ".kml" extension. Following from the example, "test.kml"

    kml

    the kml object to write to the kmz file

    pretty

    the optional pretty printer to use

Inherited from AnyRef

Inherited from Any

Ungrouped