All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.genmodel.NestedMojoReaderBackend Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.genmodel;

import java.io.BufferedReader;
import java.io.IOException;

class NestedMojoReaderBackend implements MojoReaderBackend {

    private MojoReaderBackend _reader;
    private String _zipDirectory;

    NestedMojoReaderBackend(MojoReaderBackend parent, String zipDirectory) {
        _reader = parent;
        _zipDirectory = zipDirectory;
    }

    @Override
    public BufferedReader getTextFile(String filename) throws IOException {
        return _reader.getTextFile(_zipDirectory + filename);
    }

    @Override
    public byte[] getBinaryFile(String filename) throws IOException {
        return _reader.getBinaryFile(_zipDirectory + filename);
    }

    @Override
    public boolean exists(String filename) {
        return _reader.exists(_zipDirectory + filename);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy