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

com.github.vincentrussell.query.mongodb.sql.converter.UncloseableInputStream Maven / Gradle / Ivy

Go to download

sql-to-mongo-db-query-converter helps you build quieres for MongoDb based on Queries provided in SQL.

There is a newer version: 1.8
Show newest version
package com.github.vincentrussell.query.mongodb.sql.converter;

import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 *  An {@link InputStream} which cannot be closed.
 */
public class UncloseableInputStream extends FilterInputStream {

    /**
     * Default constructor.
     * @param in the wrapped {@link InputStream}
     */
    public UncloseableInputStream(final InputStream in) {
        super(in);
    }

    /**
     * This method does not has any effect the {@link InputStream}
     * cannot be closed.
     */
    @Override
    public void close() throws IOException {
        //noop
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy