public abstract class AbstractStreamExporterImpl extends AssignableBase<Archive<?>> implements StreamExporter
Constructor and Description |
---|
AbstractStreamExporterImpl(Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
void |
exportTo(File target) |
void |
exportTo(File target,
boolean overwrite) |
void |
exportTo(OutputStream target) |
protected OutputStream |
getOutputStreamToFile(File target,
boolean overwrite)
Obtains an
OutputStream to the provided File . |
as, getArchive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportAsInputStream
as
public AbstractStreamExporterImpl(Archive<?> archive)
protected final OutputStream getOutputStreamToFile(File target, boolean overwrite) throws FileExistsException
OutputStream
to the provided File
.target
- overwrite
- Whether we may overwrite an existing fileFileExistsException
- If the specified file exists and the overwrite flag is falseIllegalArgumentException
- If the file target is not specifiedpublic void exportTo(OutputStream target) throws ArchiveExportException, IllegalArgumentException
exportTo
in interface StreamExporter
ArchiveExportException
IllegalArgumentException
StreamExporter.exportTo(java.io.OutputStream)
public final void exportTo(File target, boolean overwrite) throws ArchiveExportException, FileExistsException
exportTo
in interface StreamExporter
ArchiveExportException
FileExistsException
StreamExporter.exportTo(java.io.File, boolean)
public final void exportTo(File target) throws ArchiveExportException, FileExistsException
exportTo
in interface StreamExporter
ArchiveExportException
FileExistsException
StreamExporter.exportTo(java.io.File)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.