com.basistech.problem.Trouble.java Source code

Java tutorial

Introduction

Here is the source code for com.basistech.problem.Trouble.java

Source

/******************************************************************************
 * * This data and information is proprietary to, and a valuable trade secret
 * * of, Basis Technology Corp.  It is given in confidence by Basis Technology
 * * and may only be used as permitted under the license agreement under which
 * * it has been distributed, and in no other way.
 * *
 * * Copyright (c) 2015 Basis Technology Corporation All rights reserved.
 * *
 * * The technical data and information provided herein are provided with
 * * `limited rights', and the computer software provided herein is provided
 * * with `restricted rights' as those terms are defined in DAR and ASPR
 * * 7-104.9(a).
 ******************************************************************************/

package com.basistech.problem;

import org.apache.commons.io.IOUtils;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

/**
 * Class that uses Commons-io.
 */
public class Trouble {
    static {
        new Trouble().close(new ByteArrayInputStream(new byte[0]));
    }

    public Trouble() {
        //
    }

    public void close(InputStream stream) {
        IOUtils.closeQuietly(stream);
    }
}