Packages

o

fm.common

IOUtils

object IOUtils

Collection of IO Utilities. Some implemented via Apache Commons IO

Source
IOUtils.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IOUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def copy(input: Reader, output: Writer): Int

    Copy chars from a Reader to a Writer.

    Copy chars from a Reader to a Writer.

    This method buffers the input internally, so there is no need to use a BufferedReader.

  7. def copy(input: InputStream, output: OutputStream): Int

    Copy bytes from an InputStream to an OutputStream.

    Copy bytes from an InputStream to an OutputStream.

    This method buffers the input internally, so there is no need to use a BufferedInputStream.

  8. def copy(input: Resource[InputStream], output: Resource[OutputStream]): Int

    Copy bytes from an Resource[InputStream] to an Resource[OutputStream].

    Copy bytes from an Resource[InputStream] to an Resource[OutputStream].

    This method buffers the input internally, so there is no need to use a BufferedInputStream.

  9. def detectCharset(is: InputStream, useMarkReset: Boolean): Option[Charset]

    Attempt to detect the charset of the InputStream using the XML Detector or the Universal Detector

  10. def detectCharsetName(is: InputStream, useMarkReset: Boolean): Option[String]

    Attempt to detect the charset of the InputStream using the XML Detector or the Universal Detector

  11. def detectUniversalCharset(is: InputStream, useMarkReset: Boolean): Option[Charset]

    Attempt to detect the charset of the InputStream using org.mozilla.universalchardet.UniversalDetector

  12. def detectUniversalCharsetName(is: InputStream, useMarkReset: Boolean): Option[String]

    Attempt to detect the charset of the InputStream using org.mozilla.universalchardet.UniversalDetector

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def read(input: Reader, buffer: Array[Char], offset: Int, length: Int): Int

    Read characters from an input character stream.

    Read characters from an input character stream. This implementation guarantees that it will read as many characters as possible before giving up; this IS NOT ALWAYS the case for subclasses of Reader.

  22. def read(input: Reader, buffer: Array[Char]): Int

    Read characters from an input character stream.

    Read characters from an input character stream. This implementation guarantees that it will read as many characters as possible before giving up; this IS NOT ALWAYS the case for subclasses of Reader.

  23. def read(input: InputStream, buffer: Array[Byte], offset: Int, length: Int): Int

    Read bytes from an input stream.

    Read bytes from an input stream. This implementation guarantees that it will read as many bytes as possible before giving up; this IS NOT ALWAYS the case for subclasses of InputStream.

  24. def read(input: InputStream, buffer: Array[Byte]): Int

    Read bytes from an input stream.

    Read bytes from an input stream. This implementation guarantees that it will read as many bytes as possible before giving up; this IS NOT ALWAYS the case for subclasses of InputStream.

  25. def skip(input: Reader, toSkip: Long): Long

    Skip characters from an input character stream.

    Skip characters from an input character stream. This implementation guarantees that it will read as many characters as possible before giving up; this IS NOT ALWAYS the case for subclasses of Reader.

  26. def skip(input: InputStream, toSkip: Long): Long

    Skip bytes from an input byte stream.

    Skip bytes from an input byte stream. This implementation guarantees that it will read as many bytes as possible before giving up; this IS NOT ALWAYS the case for subclasses of Reader.

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toBufferedInputStream(input: InputStream): BufferedInputStream

    If this is already a BufferedInputStream return this otherwise wrap in a BufferedInputStream

  29. def toBufferedOutputStream(output: OutputStream): BufferedOutputStream

    If this is already a BufferedOutputStream return this otherwise wrap in a BufferedOutputStream

  30. def toBufferedReader(input: Reader): BufferedReader

    If this is already a BufferedReader return this otherwise wrap in a BufferedReader

  31. def toBufferedWriter(output: Writer): BufferedWriter

    If this is already a BufferedWriter return this otherwise wrap in a BufferedWriter

  32. def toByteArray(input: InputStream): Array[Byte]

    Get the contents of an InputStream as a byte[].

    Get the contents of an InputStream as a byte[].

    This method buffers the input internally, so there is no need to use a BufferedInputStream.

  33. def toCharArray(input: Reader): Array[Char]

    Get the contents of a Reader as a character array.

    Get the contents of a Reader as a character array.

    This method buffers the input internally, so there is no need to use a BufferedReader.

  34. def toString(input: Reader): String

    Get the contents of a Reader as a String.

    Get the contents of a Reader as a String.

    This method buffers the input internally, so there is no need to use a BufferedReader.

  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped