|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstec.sfc.Win32.NetworkResourceEnumerator
public final class NetworkResourceEnumerator
Represents an enumeration of resources on the network.
Network
Constructor Summary | |
---|---|
NetworkResourceEnumerator(int scope,
int resource_type,
int usage,
int display_type,
java.lang.String provider,
java.lang.String local_name,
java.lang.String remote_name)
Constructs a new enumeration of the specified resources on the network. |
Method Summary | |
---|---|
void |
close()
Closes the enumeration. |
java.lang.String |
getComment()
Returns any comment associated with the current resource. |
int |
getDisplayType()
Returns the current NetworkResourceDisplayType. |
java.lang.String |
getLocalName()
Returns the current resource's local name. |
java.lang.String |
getProvider()
Returns the current provider. |
java.lang.String |
getRemoteName()
Returns the current resource's remote name. |
int |
getResourceType()
Returns the current NetworkResourceType. |
int |
getScope()
Returns the current NetworkResourceScope. |
int |
getUsage()
Returns the current NetworkResourceUsage. |
boolean |
isOpen()
Returns whether this enumeration is open. |
boolean |
next()
Fowards the enumeration with blocking and returns whether a next resource exists. |
boolean |
next(long timeout)
Fowards the enumeration without blocking and returns whether a next resource exists. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkResourceEnumerator(int scope, int resource_type, int usage, int display_type, java.lang.String provider, java.lang.String local_name, java.lang.String remote_name) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public final void close() throws java.io.IOException
java.io.Exception
- if any exception occurs.
java.io.IOException
public final boolean next(long timeout) throws java.io.IOException
timeout
- the number of milliseconds to wait for a resource's information to be retrieved.
java.io.Exception
- if any exception occurs.
java.io.IOException
public final boolean next() throws java.io.IOException
java.io.Exception
- if any exception occurs.
java.io.IOException
public final boolean isOpen()
public final java.lang.String getProvider()
public final java.lang.String getLocalName()
public final java.lang.String getRemoteName()
public final java.lang.String getComment()
public final int getScope()
public final int getResourceType()
public final int getDisplayType()
public final int getUsage()
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001-2005 Servertec. All rights reserved.