org.overlord.sramp.atom.archive
Class SrampArchiveJaxbUtils

java.lang.Object
  extended by org.overlord.sramp.atom.archive.SrampArchiveJaxbUtils

public class SrampArchiveJaxbUtils
extends Object

Utility methods for using jaxb.

Author:
eric.wittmann@redhat.com

Constructor Summary
SrampArchiveJaxbUtils()
           
 
Method Summary
static BaseArtifactType readMetaData(File metaDataFile)
          Reads the meta-data (*.atom) file and returns a JAXB object.
static void writeMetaData(File outputFile, BaseArtifactType artifact)
          Writes the artifact meta-data to the given working path.
static void writeMetaData(File outputFile, BaseArtifactType artifact, boolean wrap)
          Writes the artifact meta-data to the given working path.
static void writeMetaData(OutputStream outputStream, BaseArtifactType artifact)
          Writes the artifact meta-data to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrampArchiveJaxbUtils

public SrampArchiveJaxbUtils()
Method Detail

readMetaData

public static BaseArtifactType readMetaData(File metaDataFile)
                                     throws JAXBException
Reads the meta-data (*.atom) file and returns a JAXB object.

Parameters:
metaDataFile -
Throws:
JAXBException

writeMetaData

public static void writeMetaData(File outputFile,
                                 BaseArtifactType artifact)
                          throws JAXBException
Writes the artifact meta-data to the given working path.

Parameters:
outputFile -
artifact -
Throws:
JAXBException

writeMetaData

public static void writeMetaData(File outputFile,
                                 BaseArtifactType artifact,
                                 boolean wrap)
                          throws JAXBException
Writes the artifact meta-data to the given working path.

Parameters:
outputFile -
artifact -
wrap -
Throws:
JAXBException

writeMetaData

public static void writeMetaData(OutputStream outputStream,
                                 BaseArtifactType artifact)
                          throws JAXBException
Writes the artifact meta-data to the given output stream.

Parameters:
outputStream -
artifact -
Throws:
JAXBException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.