StreamCapabilitiesPolicy (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, class: StreamCapabilitiesPolicy

Package org.apache.hadoop.fs

# Class StreamCapabilitiesPolicy

java.lang.Object
org.apache.hadoop.fs.StreamCapabilitiesPolicy

@Public @Evolving public class StreamCapabilitiesPolicy extends Object
Static methods to implement policies for `StreamCapabilities`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StreamCapabilitiesPolicy()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `unbuffer(InputStream in)`
  Implement the policy for `CanUnbuffer.unbuffer()`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE

    public static final String CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### StreamCapabilitiesPolicy

    public StreamCapabilitiesPolicy()

- ## Method Details

  - ### unbuffer

    public static void unbuffer(InputStream in)
    Implement the policy for `CanUnbuffer.unbuffer()`.
    Parameters:
      `in` - the input stream