object IOUtils
Collection of IO Utilities. Some implemented via Apache Commons IO
- Source
- IOUtils.scala
- Alphabetic
- By Inheritance
- IOUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- 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.
- 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.
- def detectCharset(is: InputStream, useMarkReset: Boolean): Option[Charset]
Attempt to detect the charset of the InputStream using the XML Detector or the Universal Detector
- def detectCharsetName(is: InputStream, useMarkReset: Boolean): Option[String]
Attempt to detect the charset of the InputStream using the XML Detector or the Universal Detector
- def detectUniversalCharset(is: InputStream, useMarkReset: Boolean): Option[Charset]
Attempt to detect the charset of the InputStream using org.mozilla.universalchardet.UniversalDetector
- def detectUniversalCharsetName(is: InputStream, useMarkReset: Boolean): Option[String]
Attempt to detect the charset of the InputStream using org.mozilla.universalchardet.UniversalDetector
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBufferedInputStream(input: InputStream): BufferedInputStream
If this is already a BufferedInputStream return this otherwise wrap in a BufferedInputStream
- def toBufferedOutputStream(output: OutputStream): BufferedOutputStream
If this is already a BufferedOutputStream return this otherwise wrap in a BufferedOutputStream
- def toBufferedReader(input: Reader): BufferedReader
If this is already a BufferedReader return this otherwise wrap in a BufferedReader
- def toBufferedWriter(output: Writer): BufferedWriter
If this is already a BufferedWriter return this otherwise wrap in a BufferedWriter
- 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.
- 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.
- 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.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])