All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.mmm.util.io.api.ByteProvider Maven / Gradle / Ivy

The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.io.api;

/**
 * This is an abstract interface for some object (typically some buffer) that provides bytes. The main impact is to
 * avoid redundant method declarations. It should not be used directly.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.1.0
 */
public abstract interface ByteProvider {

  /**
   * This method gets the number of bytes available.
   *
   * @return the bytes left.
   */
  int getBytesAvailable();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy