blob: 1dc43be6d569002a38471686a5ac10014f54010e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.ecl.filesystem;
import java.io.File;
import java.io.InputStream;
import java.net.URI;
import java.util.Collection;
import org.eclipse.core.runtime.CoreException;
public interface EclFile {
String getName();
boolean exists();
Collection<? extends EclFile> getChildren() throws CoreException;
URI toURI();
boolean isDirectory();
void delete() throws CoreException;
void append(InputStream data) throws CoreException;
void write(InputStream data) throws CoreException;
InputStream read() throws CoreException;
File toFile();
}