01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.files.memory;
09:
10: //base classes
11:
12: //project specific classes
13: import org.jfolder.common.files.BaseVirtualFileSystemFile;
14: import org.jfolder.common.files.VirtualFileSystemFile;
15:
16: //other classes
17:
18: class MemoryFileSystemFile extends BaseVirtualFileSystemFile implements
19: VirtualFileSystemFile {
20:
21: private String name = null;
22: private byte content[] = null;
23:
24: protected MemoryFileSystemFile(String inName, byte inContent[]) {
25: this .name = inName;
26: this .content = inContent;
27: }
28:
29: public String getName() {
30: return this .name;
31: }
32:
33: public byte[] getContent() {
34: return this.content;
35: }
36:
37: }
|