modules/dio-generic/src/main/java/jdk/dio/generic/GenericBufferIODevice.java
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
// Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------
package jdk.dio.generic;
import cc.squirreljme.runtime.cldc.annotation.Api;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ByteChannel;
import jdk.dio.BufferAccess;
import jdk.dio.ClosedDeviceException;
import jdk.dio.UnavailableDeviceException;
import jdk.dio.UnsupportedByteOrderException;
@SuppressWarnings("DuplicateThrows")
@Api
public interface GenericBufferIODevice
extends GenericDevice, ByteChannel, BufferAccess<ByteBuffer>
{
@Override
int read(ByteBuffer __a)
throws IOException, UnavailableDeviceException,
UnsupportedByteOrderException, ClosedDeviceException;
@Api
int read(int __a, ByteBuffer __b)
throws IOException, UnavailableDeviceException,
UnsupportedByteOrderException, ClosedDeviceException;
@Override
int write(ByteBuffer __a)
throws IOException, UnavailableDeviceException,
UnsupportedByteOrderException, ClosedDeviceException;
}