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

com.bumptech.glide.integration.cronet.ByteBufferParser Maven / Gradle / Ivy

package com.bumptech.glide.integration.cronet;

import java.nio.ByteBuffer;

/**
 * Parses a {@link java.nio.ByteBuffer} to a particular data type.
 *
 * @param  The type of data to parse the buffer to.
 */
interface ByteBufferParser {
  /** Returns the required type of data parsed from the given {@link ByteBuffer}. */
  T parse(ByteBuffer byteBuffer);
  /** Returns the {@link Class} of the data that will be parsed from {@link ByteBuffer}s. */
  Class getDataClass();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy