public class FileHeader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SIZE
The size of the header
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFiles(java.lang.String[] names,
int size,
boolean replace)
Create new files with a given header
|
static FileHeader |
createFiles(java.lang.String[] names,
int size,
boolean replace)
Create a set of files with a common header
|
boolean |
equals(java.lang.Object o)
test for equality with another FileHeader
|
public static final int HEADER_SIZE
public void addFiles(java.lang.String[] names,
int size,
boolean replace)
throws StorageException
names - the names of the filessize - if greater than 0, the size to make the filesreplace - if true, replace existing files. if false, throw
an exception if any of the files existsStorageException - I/O error creating the files
or "replace" was false, and a file already existspublic static FileHeader createFiles(java.lang.String[] names, int size, boolean replace) throws StorageException
names - the names of the filessize - if greater than 0, the size to make the filesreplace - if true, replace existing files. if false, throw
an exception if any of the files existsStorageException - I/O error creating the files
or "replace" was false, and a file already existspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectequals - compare for equality with thisCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.