com.svincent.moksa
Class Io.StreamIdentifier

java.lang.Object
  |
  +--com.svincent.moksa.WamObject
        |
        +--com.svincent.moksa.PrologTerm
              |
              +--com.svincent.moksa.Io.StreamIdentifier
All Implemented Interfaces:
Trailable
Direct Known Subclasses:
Io.PrologInput, Io.PrologOutput
Enclosing class:
Io

public abstract static class Io.StreamIdentifier
extends PrologTerm

An identifier for a currently open input or output stream.


Fields inherited from class com.svincent.moksa.PrologTerm
EmptyArray
 
Constructor Summary
Io.StreamIdentifier(Io _io, java.lang.String _uri, CompoundTerm _options)
           
 
Method Summary
 PrologTerm clonePrologTerm(java.util.Map objs)
           
 void close()
           
abstract  void flush()
           
abstract  int getMode()
           
 java.lang.String getName()
           
 CompoundTerm getOptions()
           
 java.lang.String getUri()
           
 boolean isInput()
           
 boolean isOpen()
           
 boolean isOutput()
           
 boolean isStreamId()
          Returns true iff this is a Stream Identifier.
 boolean unify(PrologTerm _that, boolean bindVars)
          Unification algorithm.
 
Methods inherited from class com.svincent.moksa.PrologTerm
accept, clonePrologTerm, deref, evaluateExpression, floatValue, getArity, getNameConstant, getPriority, intValue, isAtom, isCompoundTerm, isConstant, isEmptyList, isFloat, isInteger, isJavaObject, isList, isNonEmptyList, isStructure, isVariable, printVariables, setPriority, unify, unifyWithoutBindings, untrail
 
Methods inherited from class com.svincent.moksa.WamObject
tag, tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Io.StreamIdentifier

public Io.StreamIdentifier(Io _io,
                           java.lang.String _uri,
                           CompoundTerm _options)
Method Detail

getUri

public java.lang.String getUri()

getOptions

public CompoundTerm getOptions()

isStreamId

public boolean isStreamId()
Description copied from class: PrologTerm
Returns true iff this is a Stream Identifier.
Overrides:
isStreamId in class PrologTerm

getMode

public abstract int getMode()

isOpen

public boolean isOpen()

isInput

public boolean isInput()

isOutput

public boolean isOutput()

close

public void close()
           throws java.io.IOException

flush

public abstract void flush()
                    throws java.io.IOException

getName

public java.lang.String getName()
Overrides:
getName in class PrologTerm

unify

public boolean unify(PrologTerm _that,
                     boolean bindVars)
Description copied from class: PrologTerm
Unification algorithm.
Overrides:
unify in class PrologTerm
Tags copied from class: PrologTerm
Parameters:
doBindings - Pass in true if you want matched variables to be bound.
Returns:
true iff the two PrologTerms successfully unify.

clonePrologTerm

public PrologTerm clonePrologTerm(java.util.Map objs)
Overrides:
clonePrologTerm in class PrologTerm



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.