01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.util;
05:
06: import java.io.File;
07: import java.io.IOException;
08:
09: public interface ArchiveBuilder {
10:
11: public void putTraverseDirectory(File dir, String dirName)
12: throws IOException;
13:
14: public void putDirEntry(String file) throws IOException;
15:
16: public void putEntry(String file, byte[] bytes) throws IOException;
17:
18: public void finish() throws IOException;
19:
20: public byte[] readFile(File file) throws IOException;
21: }
|