public boolean add(final E arg0) {
try {
if (this.out == null) {
this.file = new File(this.filename + this.numberFiles);
final FileOutputStream fos = new FileOutputStream(this.file, true);
this.out = new LuposObjectOutputStreamWithoutWritingHeader(
new BufferedOutputStream(fos));
}
if (this.file.length() > STORAGELIMIT) {
this.out.close();
this.numberFiles++;
this.file = new File(this.filename + this.numberFiles);
final FileOutputStream fos = new FileOutputStream(this.file, true);
this.out = new LuposObjectOutputStreamWithoutWritingHeader(
new BufferedOutputStream(fos));
}
this.out.writeLuposObject(arg0);
this.size++;