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, getArchiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportAsInputStreamaspublic 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 StreamExporterArchiveExportExceptionIllegalArgumentExceptionStreamExporter.exportTo(java.io.OutputStream)public final void exportTo(File target, boolean overwrite) throws ArchiveExportException, FileExistsException
exportTo in interface StreamExporterArchiveExportExceptionFileExistsExceptionStreamExporter.exportTo(java.io.File, boolean)public final void exportTo(File target) throws ArchiveExportException, FileExistsException
exportTo in interface StreamExporterArchiveExportExceptionFileExistsExceptionStreamExporter.exportTo(java.io.File)Copyright © 2016 JBoss by Red Hat. All rights reserved.