public class ArtifactStreams extends Object
| Constructor and Description |
|---|
ArtifactStreams() |
| Modifier and Type | Method and Description |
|---|---|
static File |
deserialiseStreamToDir(InputStream in,
File destination)
Deserialises an input stream into the supplied destination path
|
static com.google.common.base.Function<File,String> |
fileToZipEntryName(File rootDir)
returns a zip entry name for given file name by relativising it with the supplied root directory paramater.
|
static Iterator<String> |
iterateFilesAndDirs(File rootDir)
Similar to
FileUtils.iterateFilesAndDirs(File, IOFileFilter, IOFileFilter) but returns file names relative to root dir. |
static ArtifactHandlerPublishingResult |
writeFileSetToStream(org.apache.tools.ant.types.FileSet fileSet,
OutputStream out)
Serialises a fileset into an output stream.
|
static ArtifactHandlerPublishingResult |
writeFilesToStream(File rootDir,
Iterator<String> files,
OutputStream out)
Serialises a files into an output stream.
|
public static com.google.common.base.Function<File,String> fileToZipEntryName(File rootDir)
@Nullable public static File deserialiseStreamToDir(InputStream in, File destination) throws IOException
IOExceptionpublic static ArtifactHandlerPublishingResult writeFileSetToStream(org.apache.tools.ant.types.FileSet fileSet, OutputStream out) throws IOException
IOExceptionpublic static ArtifactHandlerPublishingResult writeFilesToStream(File rootDir, Iterator<String> files, OutputStream out) throws IOException
IOExceptionCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.