Next: , Previous: , Up: FileDescriptor   [Index]


1.76.5 FileDescriptor: basic

checkError

Perform error checking. By default, we call File class>>#checkError.

close

Close the file

contents

Answer the whole contents of the file

copyFrom: from to: to

Answer the contents of the file between the two given positions

finalize

Close the file if it is still open by the time the object becomes garbage.

invalidate

Invalidate a file descriptor

next

Return the next character in the file, or nil at eof

nextByte

Return the next byte in the file, or nil at eof

nextPut: aCharacter

Store aCharacter on the file

nextPutByte: anInteger

Store the byte, anInteger, on the file

nextPutByteArray: aByteArray

Store aByteArray on the file

peek

Returns the next element of the stream without moving the pointer. Returns nil when at end of stream.

peekFor: anObject

Returns whether the next element of the stream is equal to anObject, without moving the pointer if it is not.

position

Answer the zero-based position from the start of the file

position: n

Set the file pointer to the zero-based position n

reset

Reset the stream to its beginning

shutdown

Close the transmission side of a full-duplex connection. This is useful on read-write pipes.

size

Return the current size of the file, in bytes

truncate

Truncate the file at the current position


Next: , Previous: , Up: FileDescriptor   [Index]