Package com.norconex.commons.lang.io

# Interface CachedStream

All Known Subinterfaces:
  `ICachedStream`

All Known Implementing Classes:
  `CachedInputStream`, `CachedOutputStream`

public interface CachedStream
Caches I/O streams for reuse. Applied on input and output stream

Since:
  3.0.0 (renamed from 2.x ICachedStream)

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Path`
  `getCacheDirectory()`
  Gets the cache directory where temporary cache files are created.
  `long`
  `getMemCacheSize()`
  Get the amount of bytes used for caching this stream.

- ## Method Details

  - ### getMemCacheSize

    long getMemCacheSize()
    Get the amount of bytes used for caching this stream.
    Returns:
      amount of bytes

  - ### getCacheDirectory

    Path getCacheDirectory()
    Gets the cache directory where temporary cache files are created.
    Returns:
      the cache directory
    Since:
      1.14.0