public class FileSmoosher extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
FileSmoosher.Outer |
| Constructor and Description |
|---|
FileSmoosher(File baseDir) |
FileSmoosher(File baseDir,
int maxChunkSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(File fileToAdd) |
void |
add(String name,
ByteBuffer bufferToAdd) |
void |
add(String name,
File fileToAdd) |
void |
add(String name,
List<ByteBuffer> bufferToAdd) |
SmooshedWriter |
addWithSmooshedWriter(String name,
long size) |
void |
close() |
Set<String> |
getInternalFilenames() |
public FileSmoosher(File baseDir)
public FileSmoosher(File baseDir, int maxChunkSize)
public void add(File fileToAdd) throws IOException
IOExceptionpublic void add(String name, File fileToAdd) throws IOException
IOExceptionpublic void add(String name, ByteBuffer bufferToAdd) throws IOException
IOExceptionpublic void add(String name, List<ByteBuffer> bufferToAdd) throws IOException
IOExceptionpublic SmooshedWriter addWithSmooshedWriter(String name, long size) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.