Class IoUtil

java.lang.Object
org.apache.commons.io.IOUtils
com.github.shoothzj.javatool.util.IoUtil

public class IoUtil extends org.apache.commons.io.IOUtils
Author:
shoothzj
  • Field Summary

    Fields inherited from class org.apache.commons.io.IOUtils

    CR, DEFAULT_BUFFER_SIZE, DIR_SEPARATOR, DIR_SEPARATOR_UNIX, DIR_SEPARATOR_WINDOWS, EMPTY_BYTE_ARRAY, EOF, LF, LINE_SEPARATOR, LINE_SEPARATOR_UNIX, LINE_SEPARATOR_WINDOWS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    read2Byte(InputStream inputStream)
     
    static String
    read2String(InputStream inputStream)
     
    static String
    read2StringCharset(InputStream inputStream, Charset charset)
     
    static String
     

    Methods inherited from class org.apache.commons.io.IOUtils

    buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, byteArray, byteArray, close, close, close, close, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, consume, contentEquals, contentEquals, contentEqualsIgnoreEOL, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, length, length, length, length, lineIterator, lineIterator, lineIterator, read, read, read, read, read, readFully, readFully, readFully, readFully, readFully, readFully, readLines, readLines, readLines, readLines, resourceToByteArray, resourceToByteArray, resourceToString, resourceToString, resourceToURL, resourceToURL, skip, skip, skip, skipFully, skipFully, skipFully, toBufferedInputStream, toBufferedInputStream, toBufferedReader, toBufferedReader, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toCharArray, toCharArray, toCharArray, toCharArray, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeChunked, writeChunked, writeLines, writeLines, writeLines, writeLines, writer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IoUtil

      public IoUtil()
  • Method Details

    • readFile2String

      public static String readFile2String(String fileName)
    • read2String

      public static String read2String(InputStream inputStream)
    • read2StringCharset

      public static String read2StringCharset(InputStream inputStream, Charset charset)
    • read2Byte

      public static byte[] read2Byte(InputStream inputStream)