|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams
public class ArtifactStreams
Class used to handle serialising of files from directories into streams and deserialising them.
Constructor Summary | |
---|---|
ArtifactStreams()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArtifactStreams()
Method Detail |
---|
public static com.google.common.base.Function<File,String> fileToZipEntryName(File rootDir)
@Nullable public static File deserialiseStreamToDir(InputStream in, File destination) throws IOException
IOException
public static ArtifactHandlerPublishingResult writeFileSetToStream(org.apache.tools.ant.types.FileSet fileSet, OutputStream out) throws IOException
IOException
public static ArtifactHandlerPublishingResult writeFilesToStream(File rootDir, Iterator<String> files, OutputStream out) throws IOException
IOException
@NotNull public static Iterator<String> iterateFilesAndDirs(File rootDir)
FileUtils#iterateFilesAndDirs(File, IOFileFilter, IOFileFilter)
but returns file names relative to root dir. Also, does not include
the root directory in the result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |