com.cyc.tool.subl.jrtl.nativeCode.type.stream
Class SubLInputBinaryStreamImpl

java.lang.Object
  extended by com.cyc.tool.subl.jrtl.nativeCode.type.core.AbstractSubLObject
      extended by com.cyc.tool.subl.jrtl.nativeCode.type.stream.AbstractSubLStream
          extended by com.cyc.tool.subl.jrtl.nativeCode.type.stream.AbstractRandomAccessSubLStream
              extended by com.cyc.tool.subl.jrtl.nativeCode.type.stream.AbstractSubLBinaryStream
                  extended by com.cyc.tool.subl.jrtl.nativeCode.type.stream.SubLInputBinaryStreamImpl
All Implemented Interfaces:
CommonSymbols, SubLObject, SubLInputBinaryStream, SubLInputStream, SubLStream, java.lang.Cloneable

public final class SubLInputBinaryStreamImpl
extends AbstractSubLBinaryStream
implements SubLInputBinaryStream, CommonSymbols


Field Summary
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.stream.SubLStream
DEFAULT_CHARSET, DEFAULT_CHARSET_DECODER, DEFAULT_CHARSET_NAME, DEFAULT_NEWLINE, STREAM_TYPE_NAME
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
DEFAULT_EXCEEDED_HASH_VALUE, DO_CHECK_TYPES, DO_PARANOID_TYPE_CHECKING, MAX_HASH_DEPTH, MAX_HASH_LENGTH
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.subLisp.CommonSymbols
ANSWER_TAG, APPEND_KEYWORD, APPEND_STACK_TRACES_TO_ERROR_MESSAGES, AREF, ASSEMBLE_FIXNUMS_TO_INTEGER, ATOM, BIGNUMP, BINARY_KEYWORD, BINDING_TYPE, BOOLEANP, CAAR, CADR, CAND, CAR, CCATCH, CDEC, CDESTRUCTURING_BIND, CDO, CDO_ALL_SYMBOLS, CDO_EXTERNAL_SYMBOLS, CDO_SYMBOLS, CDOHASH, CDOLIST, CDOTIMES, CDR, CHAR, CHAR_E_SYMBOL, CHAR_EQUAL_SYMBOL, CHAR_GREATER_THAN_OR_EQUAL_SYMBOL, CHAR_GREATER_THAN_SYMBOL, CHAR_GT_SYMBOL, CHAR_GTE_SYMBOL, CHAR_LESS_THAN_OR_EQUAL_SYMBOL, CHAR_LESS_THAN_SYMBOL, CHAR_LT_SYMBOL, CHAR_LTE_SYMBOL, CHAR_NE_SYMBOL, CHAR_NOT_EQUAL_SYMBOL, CHARACTERP, CHECK_TYPE, CINC, CLET, CMULTIPLE_VALUE_BIND, CNOT, CONS, CONSP, CONSTANT, COR, CPOP, CPROGV, CPUSH, CPUSHNEW, CREATE_KEYWORD, CSETF, CSETQ, CSOME, CTIME, CUNWIND_PROTECT, CVS_ID, DEBUG_IO, DECLAIM, DECLARE, DEFCONSTANT, DEFINE, DEFLEXICAL, DEFMACRO, DEFPARAMETER, DEFVAR, DIRECTION_KEYWORD, DYNAMIC, EIGHT_INTEGER, EIGHTEEN_INTEGER, ELEMENT_TYPE_KEYWORD, ELEVEN_INTEGER, END_KEYWORD, ENFORCE_MUST, ENFORCE_TYPE, EQ, EQL, EQUAL, EQUALP, ERROR, ERROR_KEYWORD, ERROR_OUTPUT, EVAL, EXTERNAL_FORMAT_KEYWORD, EXTERNAL_KEYWORD, FIF, FIFTEEN_INTEGER, FIRST, FIVE_INTEGER, FIXNUMP, FLOATP, FOUR_INTEGER, FOURTEEN_INTEGER, FUNCTION, FUNCTION_SPEC_P, FUNCTIONP, FUNLESS, FWHEN, GET, GETHASH, GETHASH_WITHOUT_VALUES, GUID_P, HASH_TABLE_ITERATOR_P, HASH_TABLE_P, IDENTITY, IF_DOES_NOT_EXIST_KEYWORD, IF_EXISTS_KEYWORD, IGNORE, INITIALIZATION_TYPE, INITIALIZER, INPUT_KEYWORD, INPUT_STREAM_P, INTEGERP, INTERNAL_KEYWORD, IO_KEYWORD, KEYWORDP, KILL_KEYWORD, LAMBDA_SYMBOL, LEXICAL, LIST, LISTP, LISTS, LOCK_P, LONG_BIGNUM_P, MACRO_ENV, MACRO_FORM, MEDIUM_BIGNUM_P, MEMBER, MINUS_ONE_INTEGER, MULTIPLE_VALUE_LIST, MUST, NCONC, NEW_VERSION_KEYWORD, NIL, NINE_INTEGER, NINETEEN_INTEGER, NREVERSE, NTH, NTH_VALUE, NULL, NULL_INPUT, NULL_OUTPUT, NUM_E_SYMBOL, NUM_GT_SYMBOL, NUM_GTE_SYMBOL, NUM_LT_SYMBOL, NUM_LTE_SYMBOL, NUM_NE_SYMBOL, NUMBERP, ONE_HUNDRED_THIRTY_SEVEN_INTEGER, ONE_HUNDRED_TWENTY_SEVEN_INTEGER, ONE_INTEGER, ONE_THOUSAND_INTEGER, OPTIONAL_SYMBOL, OTHERWISE, OUTPUT_KEYWORD, OUTPUT_STREAM_P, OVERWRITE_KEYWORD, PACKAGEP, PCASE, PCOND, PIF, PROBE_KEYWORD, PROCESS_TO_END, PROCESSP, PROCLAIM, PROGN, PUNLESS, PWHEN, QUERY_IO, QUIT, QUOTE, RENAME_AND_DELETE_KEYWORD, REST_SYMBOL, RET, RET_NIL, RET_T, RETURN_TAG, REVERSE, RW_LOCK_P, SECOND, SEQUENCEP, SEVEN_INTEGER, SEVENTEEN_INTEGER, SHORT_BIGNUM_P, SHOW_STACK_TRACES, SIX_INTEGER, SIXTEEN_INTEGER, SIXTY_FOUR_INTEGER, SORT, SSS, STANDARD_INPUT, STANDARD_OUTPUT, START_KEYWORD, STREAMP, STRING_E_SYMBOL, STRING_EQUAL_SYMBOL, STRING_GREATER_THAN_OR_EQUAL_SYMBOL, STRING_GREATER_THAN_SYMBOL, STRING_GT_SYMBOL, STRING_GTE_SYMBOL, STRING_LESS_THAN_OR_EQUAL_SYMBOL, STRING_LESS_THAN_SYMBOL, STRING_LT_SYMBOL, STRING_LTE_SYMBOL, STRING_NE_SYMBOL, STRING_NOT_EQUAL_SYMBOL, STRINGP, STRUCTURE_P, SUPERSEDE_KEYWORD, SUSPEND_TYPE_CHECKING, SYMBOL_FUNCTION, SYMBOL_VALUE, SYMBOLP, T, TEN_INTEGER, TERMINAL_IO, TEXT_KEYWORD, THIRTEEN_INTEGER, THIRTY_FOUR_INTEGER, THIRTY_THREE_INTEGER, THIRTY_TWO_INTEGER, THREE_INTEGER, TRACE_OUTPUT, TRUE, TWELVE_INTEGER, TWENTY_INTEGER, TWO_HUNDRED_FIFTY_FOUR_INTEGER, TWO_HUNDRED_FORTY_FOUR_INTEGER, TWO_INTEGER, UNDECLARED, UNPROVIDED, VALUES, VECTOR, VECTORP, WITH_ERROR_HANDLER, WITH_STATIC_AREA, WITH_THREAD_PRIVATE_AREA, WITH_WORKING_AREA, WORLD, ZERO_DOUBLE, ZERO_INTEGER
 
Method Summary
 void close()
           
 SubLStream getStream(boolean followSynonymStream)
          Method created to avoid casting
 long numBytesAvailable()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 long readByteSequenceToPositiveInteger(int bytesInInteger)
           
 int readByteSequenceToString(SubLString str)
           
 long skip(long n)
           
 SubLInputBinaryStream toInputBinaryStream()
          Method created to avoid casting
 SubLInputStream toInputStream()
          Method created to avoid casting
 void unread(int c)
           
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.stream.AbstractRandomAccessSubLStream
flush, flush, getFD, getFile, getFilePointer, getFlushCount, isRandomAccess, length, readChar, readChar, readChar, ready, seek, setLength, shouldParentDoWork, toString, write, write, write, write, write, writeChar, writeChar, writeChar
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.stream.AbstractSubLStream
canFastHash, ensureOpen, ensureOpen, getDirection, getElementType, getFileDesignator, getInputIndex, getNewline, getStreams, getStreamSymbol, getStringOutput, getType, getTypeCode, hashCode, ifExists, ifNotExists, isAtom, isBigIntegerBignum, isBignum, isBoolean, isChar, isClosed, isCons, isDouble, isEnvironment, isError, isFixnum, isFunction, isFunctionSpec, isGuid, isHashtable, isHashtableIterator, isIntBignum, isInteger, isInteractive, isKeyhash, isKeyhashIterator, isKeyword, isList, isLock, isLongBignum, isMacroOperator, isNil, isNumber, isPackage, isProcess, isReadWriteLock, isRegexPattern, isSemaphore, isSequence, isStream, isString, isStringOutputStream, isStructure, isSymbol, isVector, setIsInteractive, setNewline, toTypeName
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.core.AbstractSubLObject
add, addKey, asArrayList, asConsList, bigIntegerValue, bind, charValue, checkType, checkTypeInternal, clone, currentBinding, dec, doubleValue, eighth, enforceType, enforceTypeInternal, eql, equal, equalp, equals, eval, fifth, first, fourth, get, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFunc, getNumSize, getString, hashCode, hasKey, inc, intValue, isArrayBased, isNegative, isPositive, isZero, last, longValue, makeCopy, makeDeepCopy, mult, ninth, nthCdr, numE, numG, numGE, numL, numLE, put, rebind, remKey, remove, rest, reverse, second, set, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sixth, size, sub, superHash, tenth, third, toChar, toCons, toDouble, toEnv, toFixnum, toGuid, toHashtable, toHashtableIterator, toInputTextStream, toInteger, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toVect
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.stream.SubLInputStream
getInputIndex
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.stream.SubLStream
getDirection, getElementType, getFD, getFile, getFilePointer, getFlushCount, getNewline, getStreams, getStreamSymbol, ifExists, ifNotExists, isClosed, isInteractive, isRandomAccess, length, seek, setIsInteractive, setLength, setNewline
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
add, addKey, asArrayList, asConsList, bigIntegerValue, bind, canFastHash, charValue, checkType, checkTypeInternal, clone, currentBinding, dec, doubleValue, eighth, enforceType, enforceTypeInternal, eql, equal, equalp, eval, fifth, first, fourth, get, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFileDesignator, getFunc, getNumSize, getString, getType, getTypeCode, hashCode, hasKey, inc, intValue, isArrayBased, isAtom, isBigIntegerBignum, isBignum, isBoolean, isChar, isCons, isDouble, isEnvironment, isError, isFixnum, isFunction, isFunctionSpec, isGuid, isHashtable, isHashtableIterator, isIntBignum, isInteger, isKeyhash, isKeyhashIterator, isKeyword, isList, isLock, isLongBignum, isMacroOperator, isNegative, isNil, isNumber, isPackage, isPositive, isProcess, isReadWriteLock, isRegexPattern, isSemaphore, isSequence, isStream, isString, isStructure, isSymbol, isVector, isZero, last, longValue, makeCopy, makeDeepCopy, mult, ninth, nthCdr, numE, numG, numGE, numL, numLE, put, rebind, remKey, remove, rest, reverse, second, set, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sixth, size, sub, superHash, tenth, third, toChar, toCons, toDouble, toEnv, toFixnum, toGuid, toHashtable, toHashtableIterator, toInputTextStream, toInteger, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toTypeName, toVect
 

Method Detail

getStream

public final SubLStream getStream(boolean followSynonymStream)
Description copied from class: AbstractSubLObject
Method created to avoid casting

Specified by:
getStream in interface SubLObject
Overrides:
getStream in class AbstractSubLObject

toInputStream

public final SubLInputStream toInputStream()
Method created to avoid casting

Specified by:
toInputStream in interface SubLObject
Overrides:
toInputStream in class AbstractSubLObject

toInputBinaryStream

public final SubLInputBinaryStream toInputBinaryStream()
Method created to avoid casting

Specified by:
toInputBinaryStream in interface SubLObject
Overrides:
toInputBinaryStream in class AbstractSubLObject

close

public void close()
Specified by:
close in interface SubLStream
Overrides:
close in class AbstractRandomAccessSubLStream

numBytesAvailable

public final long numBytesAvailable()
Specified by:
numBytesAvailable in interface SubLInputBinaryStream
Overrides:
numBytesAvailable in class AbstractRandomAccessSubLStream

readByteSequenceToString

public final int readByteSequenceToString(SubLString str)
Specified by:
readByteSequenceToString in interface SubLInputBinaryStream
Overrides:
readByteSequenceToString in class AbstractRandomAccessSubLStream

readByteSequenceToPositiveInteger

public long readByteSequenceToPositiveInteger(int bytesInInteger)
Specified by:
readByteSequenceToPositiveInteger in interface SubLInputBinaryStream
Overrides:
readByteSequenceToPositiveInteger in class AbstractRandomAccessSubLStream

read

public final int read()
Specified by:
read in interface SubLInputBinaryStream
Overrides:
read in class AbstractRandomAccessSubLStream

read

public final int read(byte[] b)
Specified by:
read in interface SubLInputBinaryStream
Overrides:
read in class AbstractRandomAccessSubLStream

read

public final int read(byte[] b,
                      int off,
                      int len)
Specified by:
read in interface SubLInputBinaryStream
Overrides:
read in class AbstractRandomAccessSubLStream

skip

public final long skip(long n)
Specified by:
skip in interface SubLInputBinaryStream
Overrides:
skip in class AbstractRandomAccessSubLStream

unread

public final void unread(int c)
Specified by:
unread in interface SubLInputBinaryStream
Overrides:
unread in class AbstractRandomAccessSubLStream