JAXB.marshal() | Java

 

Descripción

Sintaxis

public static void marshal(Object jaxbObject, File xml)
public static void marshal(Object jaxbObject, OutputStream xml)
public static void marshal(Object jaxbObject, Writer xml)
public static void marshal(Object jaxbObject, String xml)
public static void marshal(Object jaxbObject, URI xml)
public static void marshal(Object jaxbObject, URL xml)
public static void marshal(Object jaxbObject, Result xml)

Parámetros

  • File xml,
  • Writer xml,
  • String xml,
  • OutputStream xml,
  • Result xml,
  • URI xml,
  • Object jaxbObject,
  • URL xml,

Excepciones

DataBindingException

Clase Padre

JAXB

Ejemplo


Líneas de Código

    Manual Java

    Aprende más sobre Java consultando online o descargando nuestro manual.

    Test Java

    ¿Te atreves a probar tus habilidades y conocimiento en Java con nuestro test?

    Vídeos Java

    Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.