Home | History | Annotate | Download | only in io
      1 /*
      2  * Copyright (C) 2007 The Guava Authors
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  * http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 /**
     18  * This package contains utility methods and classes for working with Java I/O,
     19  * for example input streams, output streams, readers, writers, and files.
     20  *
     21  * <p>Many of the methods are based on the
     22  * {@link com.google.common.io.InputSupplier} and
     23  * {@link com.google.common.io.OutputSupplier} interfaces. They are used as
     24  * factories for I/O objects that might throw {@link java.io.IOException} when
     25  * being created. The advantage of using a factory is that the helper methods in
     26  * this package can take care of closing the resource properly, even if an
     27  * exception is thrown. The {@link com.google.common.io.ByteStreams},
     28  * {@link com.google.common.io.CharStreams}, and
     29  * {@link com.google.common.io.Files} classes all have static helper methods to
     30  * create new factories and to work with them.
     31  *
     32  * <p>This package is a part of the open-source
     33  * <a href="http://guava-libraries.googlecode.com">Guava libraries</a>.
     34  *
     35  * @author Chris Nokleberg
     36  */
     37 @ParametersAreNonnullByDefault
     38 package com.google.common.io;
     39 
     40 import javax.annotation.ParametersAreNonnullByDefault;
     41