jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPNetSyncInfo

java.lang.Object
  extended byorg.jSyncManager.API.Protocol.Util.DLPNetSyncInfo
All Implemented Interfaces:
java.io.Serializable

public class DLPNetSyncInfo
extends java.lang.Object
implements java.io.Serializable

The Network Sync Information class. This class is used to contains a handhelds network synchronization information.

Version:
$Revision: 1.3 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2004/07/20 01:22:48 $.
See Also:
Serialized Form

Constructor Summary
DLPNetSyncInfo()
          Create a new, empty Net Sync Info object.
DLPNetSyncInfo(byte[] data)
          Creates a new Net Sync Info object based on the byte array read from the handheld.
 
Method Summary
 java.lang.String getHostIP()
          Gets the host IP for LANSync, or null if not set.
 java.lang.String getHostName()
          Gets the hostname for LANSync, or null if not set.
 java.lang.String getNetmask()
          Gets the netmask for LANSync, or null if not set.
 boolean isLANSyncEnabled()
          Tests to see if LANSync is enabled.
 byte[] object2Bytes()
          Converts this object to a series of bytes for writing to the handheld.
 void setHostIP(java.lang.String ip)
          Sets the hostIP for LANSync.
 void setHostName(java.lang.String host)
          Sets the hostname for LANSync.
 void setLANSyncEnabled(boolean state)
          Sets the LANSync-enabled state.
 void setNetmask(java.lang.String netmask)
          Sets the netmask for LANSync.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLPNetSyncInfo

public DLPNetSyncInfo()
Create a new, empty Net Sync Info object. By default, all fields will be set to null.


DLPNetSyncInfo

public DLPNetSyncInfo(byte[] data)
Creates a new Net Sync Info object based on the byte array read from the handheld.

Parameters:
data - the LANSync information as read from the handheld.
Method Detail

getHostName

public java.lang.String getHostName()
Gets the hostname for LANSync, or null if not set.

Returns:
the hostname for LANSync, or null if not set.

getHostIP

public java.lang.String getHostIP()
Gets the host IP for LANSync, or null if not set.

Returns:
the hostIP for LANSync, or null if not set.

getNetmask

public java.lang.String getNetmask()
Gets the netmask for LANSync, or null if not set.

Returns:
the netmask for LANSync, or null if not set.

setHostName

public void setHostName(java.lang.String host)
Sets the hostname for LANSync.

Parameters:
host - the hostname to use for LANSync.

setHostIP

public void setHostIP(java.lang.String ip)
Sets the hostIP for LANSync.

Parameters:
ip - the hostIP to use for LANSync.

setNetmask

public void setNetmask(java.lang.String netmask)
Sets the netmask for LANSync.

Parameters:
netmask - the netmask to use for LANSync.

isLANSyncEnabled

public boolean isLANSyncEnabled()
Tests to see if LANSync is enabled.

Returns:
true if LANSync is enabled, false otherwise.

setLANSyncEnabled

public void setLANSyncEnabled(boolean state)
Sets the LANSync-enabled state.

Parameters:
state - set to true if LANSync is to be enabled, false otherwise.

object2Bytes

public byte[] object2Bytes()
Converts this object to a series of bytes for writing to the handheld.

Returns:
a series of bytes representing this object.

jSyncManager

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