jSyncManager

org.jSyncManager.API.Protocol.Util.VFS
Class SlotReference

java.lang.Object
  extended byorg.jSyncManager.API.Protocol.Util.VFS.SlotReference

public class SlotReference
extends java.lang.Object

A representation of a slot reference for use with devices with an expansion slot. This class is used by nearly all expansion manager functions. It provides a mechanism for identifying the slot being worked on.

Version:
$Revision: 1.2 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2004/08/12 02:14:39 $.

Field Summary
static int MEDIA_TYPE_COMPACT_FLASH
          A type to denote the Conpact Flash media matching type ('cfsh').
static int MEDIA_TYPE_MEMORY_STICK
          A type to denote the Memory Stick media matching type ('mstk').
static int MEDIA_TYPE_MULTIMEDIA_CARD
          A type to denote the MultiMedia Card media matching type ('mmcd').
static int MEDIA_TYPE_PLUG_AND_PLAY
          A type to denote the Plug and Play connector media matching type ('pnps').
static int MEDIA_TYPE_POSE_HOST
          A type to denote the POSE Emulator media matching type ('pose').
static int MEDIA_TYPE_RAM_DISK
          A type to denote the RAM Disk media matching type ('ramd').
static int MEDIA_TYPE_SECURE_DIGITAL
          A type to denote the Secure Digital (SD) media matching type ('sdig').
static int MEDIA_TYPE_SMART_MEDIA
          A type to denote the Smart Media media matching type ('smed').
static int MEDIA_TYPE_WILDCARD
          A type to denote the wildcard media matching type ('wild').
 
Constructor Summary
SlotReference(char i)
          Constructs a new slot reference object.
 
Method Summary
 char getSlotReferenceAsChar()
          Retreives the integer representing this slot reference.
 void putToByteArray(byte[] buffer)
          Puts the slot reference into an array of bytes.
 void putToByteArray(byte[] buffer, int position)
          Puts the slot reference into an array of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEDIA_TYPE_WILDCARD

public static final int MEDIA_TYPE_WILDCARD
A type to denote the wildcard media matching type ('wild').

See Also:
Constant Field Values

MEDIA_TYPE_MEMORY_STICK

public static final int MEDIA_TYPE_MEMORY_STICK
A type to denote the Memory Stick media matching type ('mstk').

See Also:
Constant Field Values

MEDIA_TYPE_COMPACT_FLASH

public static final int MEDIA_TYPE_COMPACT_FLASH
A type to denote the Conpact Flash media matching type ('cfsh').

See Also:
Constant Field Values

MEDIA_TYPE_SECURE_DIGITAL

public static final int MEDIA_TYPE_SECURE_DIGITAL
A type to denote the Secure Digital (SD) media matching type ('sdig').

See Also:
Constant Field Values

MEDIA_TYPE_MULTIMEDIA_CARD

public static final int MEDIA_TYPE_MULTIMEDIA_CARD
A type to denote the MultiMedia Card media matching type ('mmcd').

See Also:
Constant Field Values

MEDIA_TYPE_SMART_MEDIA

public static final int MEDIA_TYPE_SMART_MEDIA
A type to denote the Smart Media media matching type ('smed').

See Also:
Constant Field Values

MEDIA_TYPE_RAM_DISK

public static final int MEDIA_TYPE_RAM_DISK
A type to denote the RAM Disk media matching type ('ramd').

See Also:
Constant Field Values

MEDIA_TYPE_POSE_HOST

public static final int MEDIA_TYPE_POSE_HOST
A type to denote the POSE Emulator media matching type ('pose').

See Also:
Constant Field Values

MEDIA_TYPE_PLUG_AND_PLAY

public static final int MEDIA_TYPE_PLUG_AND_PLAY
A type to denote the Plug and Play connector media matching type ('pnps').

See Also:
Constant Field Values
Constructor Detail

SlotReference

public SlotReference(char i)
Constructs a new slot reference object.

Parameters:
i - the slot reference number.
Method Detail

getSlotReferenceAsChar

public char getSlotReferenceAsChar()
Retreives the integer representing this slot reference.

Returns:
the integer representing this slot reference.

putToByteArray

public void putToByteArray(byte[] buffer,
                           int position)
Puts the slot reference into an array of bytes.

Parameters:
buffer - the byte array to write the slot reference to.
position - the location to write to in the array.

putToByteArray

public void putToByteArray(byte[] buffer)
Puts the slot reference into an array of bytes. This method puts the slot reference into the specified array starting at index 0.

Parameters:
buffer - the byte array to write the slot reference to.

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.