/* **************************************************************************

  $Archive: /njcl_v2rmi/src/com/novell/service/session/xplat/DeviceAccessService.java $
  $Revision: 10 $
  $Modtime: 12/06/00 11:48a $

  Copyright (c) 1997 Novell, Inc.  All Rights Reserved.

  THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  CRIMINAL AND CIVIL LIABILITY.

****************************************************************************/
package com.novell.service.session.xplat;

import java.rmi.*;
import com.novell.service.session.*;
import com.novell.service.file.nw.*;
import com.novell.service.server.*;
import com.novell.service.ncpext.*;
import com.novell.service.file.nw.calls.*;
import com.novell.service.qms.*;
import com.novell.service.jncp.NSIException;


/** @internal
 * Object returned by Session.getService()
 */
public interface DeviceAccessService extends SessionService, Remote
{
   /**
    * mode constants
    */
   public static final int SEEK_SET                = 0;
   public static final int SEEK_CUR                = 1;
   public static final int SEEK_END                = 2;

   /**
    * The key used to generate an object of this type via the
    * Session.getService() interface.
    */
// Please leave OLD versions here but commented out for the purpose of
// tracking unique identifiers.
   public static final String KEY =
"com.novell.service.session.xplat.DeviceAccessService.4461766964";

   /**
    *
    */
   public void close (
         /*in*/   int            handle)
      throws SessionException, RemoteException;

   /**
    *
    */
   public void flush (
         /*in*/   int            handle)
      throws SessionException, RemoteException;

   /**
    *
    */
   public int getLength (
         /*in*/   int               handle)
      throws SessionException, RemoteException;

   /**
    *
    */
   public void setLength (
         /*in*/   int               handle,
         /*in*/   int               length)
      throws SessionException, RemoteException;

   /**
    *
    */
   public int getPosition (
         /*in*/   int               handle)
      throws SessionException, RemoteException;

   /**
    *
    */
   public void setPosition (
         /*in*/   int               handle,
         /*in*/   int               mode,
         /*in*/   int               position)
      throws SessionException, RemoteException;

   /**
    *
    */
   public byte[] read (
         /*in*/   int         handle,
         /*in*/   int         length)
      throws SessionException, RemoteException;

   /**
    *
    */
   public void write (
         /*in*/   int            handle,
         /*in*/   byte[]         buffer)
      throws SessionException, RemoteException;

} /* DeviceAccessService */


