# Uses of Class
com.norconex.commons.lang.io.CachedInputStream

Packages that use CachedInputStream
Package
Description
com.norconex.commons.lang.io
Utility classes when dealing with files and directories.

- ## Uses of CachedInputStream in com.norconex.commons.lang.io

  Methods in com.norconex.commons.lang.io that return CachedInputStream
  Modifier and Type
  Method
  Description
  `static CachedInputStream`
  CachedInputStream.`cache(InputStream is)`
  Casts to `CachedInputSteam` if argument is already of that type, else create a new `CachedInputStream` from the input stream argument using default `CachedStreamFactory` settings.
  `static CachedInputStream`
  CachedInputStream.`cache(InputStream is, CachedStreamFactory streamFactory)`
  Casts to `CachedInputSteam` if argument is already of that type, else create a new `CachedInputStream` from the input stream argument using the given stream factory (or defaults if `null`).
  `CachedInputStream`
  CachedOutputStream.`getInputStream()`
  Return the cached content of the of this output stream as an input stream, before disposing it.
  `CachedInputStream`
  CachedInputStream.`newInputStream(InputStream is)`
  Creates a new `CachedInputStream` using the same factory settings that were used to create this instance.
  `CachedInputStream`
  CachedInputStream.`newInputStream(Path file)`
  Creates a new `CachedInputStream` using the same factory settings that were used to create this instance.
  `CachedInputStream`
  CachedStreamFactory.`newInputStream()`
  Creates an empty input stream.
  `CachedInputStream`
  CachedStreamFactory.`newInputStream(File file)`
  `CachedInputStream`
  CachedStreamFactory.`newInputStream(InputStream is)`
  `CachedInputStream`
  CachedStreamFactory.`newInputStream(String content)`
  Creates a new input stream, assuming UTF-8 content.
  `CachedInputStream`
  CachedStreamFactory.`newInputStream(Path path)`
  Creates a new cached input stream.
  `static CachedInputStream`
  CachedInputStream.`nullInputStream()`