Sha256: 7b9fa04f94389ff2756fd3be028b1c9b7004e26e4f434ac92628d025504dd893

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

package com.rho;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Interface of simple file. Simple file can be automaticaslly opened by database given file path and access mode.
 */
public interface SimpleFile extends IFile { 
    /**
     * Open the file
     * @param path path to the file
     * @param readOnly if file is readonly
     * @param noFlush whther synchronous flush is needed
     */
    void open(String path, boolean readOnly, boolean noFlush)throws IOException;
    
    /**
     * Delete file
     * @param path path to the file
     */
    void delete(String path);
    
    boolean isOpened();
    String readString()throws IOException;
    void truncate(int nSize)throws IOException;
    InputStream getInputStream()throws IOException;
    OutputStream getOutStream();
    
    /**
     * 
     * @param path
     * @return
     */
    String getDirPath(String path) throws IOException;

    /**
     * @param fromClass
     * @param path
     * @return
     */
    public abstract InputStream getResourceAsStream(Class fromClass, String path);
    
    public abstract void renameOverwrite(String oldName, String newName);
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rhodes-1.5.5 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.5.4 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.5.3 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.5.2 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.5.1 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.5.0 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.4.2 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.4.1 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.4.0 platform/shared/rubyJVM/src/com/rho/SimpleFile.java
rhodes-1.2.2 platform/shared/rubyJVM/src/com/rho/SimpleFile.java