Sha256: 115e3834651ec7055a44cdb25a7e2621a63c05c0c56f96ec927ad134016cbfb5

Contents?: true

Size: 1.36 KB

Versions: 66

Compression:

Stored size: 1.36 KB

Contents

package com.rho.file;

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();
    OutputStream getOutStreamEx(long pos)throws IOException;    
    long length();
    
    /**
     * 
     * @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);
    
    public abstract void copyJarFileToMemory(String strFileName, InputStream jarStream)throws IOException;
}

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.2.beta.1 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.8 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.7 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.6 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.5 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.4 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.3 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.1.beta.2 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.7 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.6 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.5 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.4 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.3 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.2 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-3.0.0.beta.1 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-2.4.1 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java
rhodes-2.4.1.beta.1 platform/bb/RubyVM/src/com/rho/file/SimpleFile.java