bees.core.resource
Class Console
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.resource.Console
- public final class Console
- extends Capability
The Console capability provides access to standard I/O.
Constructor Summary |
Console()
Construct an empty Console object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CONSOLE_READ_PERMISSION
public static final Permission CONSOLE_READ_PERMISSION
- Permission to read from the console.
CONSOLE_WRITE_PERMISSION
public static final Permission CONSOLE_WRITE_PERMISSION
- Permission to write to the console.
DEFAULT_PERMISSIONS
public static final PermissionSet DEFAULT_PERMISSIONS
- Default permissions for a console.
Console
public Console()
- Construct an empty Console object.
fromBytes
protected void fromBytes(byte[] flattened)
- Description copied from class:
Capability
- Bind this capability to the given object.
- Overrides:
fromBytes
in class Capability
- See Also:
Capability.fromBytes(byte[])
revoke
public void revoke()
- Description copied from class:
Capability
- Revoke access to the capability.
- Overrides:
revoke
in class Capability
- See Also:
Capability.revoke()
getOutputStream
public java.io.OutputStream getOutputStream()
- Returns:
- The console OutputStream.
getInputStream
public java.io.InputStream getInputStream()
- Returns:
- The console InputStream.
toString
public java.lang.String toString()
- Overrides:
toString
in class Capability
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/