/* IEmulatedDisk.java (c) 2013 Ed Swartz All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ package v9t9.common.files; import java.io.IOException; /** * @author ejs * */ public interface IEmulatedDisk extends IEmulatedStorage { Catalog readCatalog() throws IOException; IEmulatedFile getFile(String name) throws IOException; String getPath(); /** * Tell if the disk appears valid (less strict than whether it's formatted) * @return */ boolean isValid(); /** * Tell if the disk appears formatted (right size and identifiers) * @return */ boolean isFormatted(); /** * Create (deleting any existing) file * @param fileName * @param srcFdr prototype for file * @return new emulated file * @throws IOException */ IEmulatedFile createFile(String fileName, FDR fdr) throws IOException; }