Squeak Class Documentation category index | class index  
 
RemoteFileStream
  category: Network-Kernel
  superclass: RWBinaryOrTextStream
  subclasses:

An in-memory stream that can be used to fileIn code from the network. Knows its ServerFile, and thus its name, path, etc.

localDataValid -- false when have never read the file from the server. Set to true after reading, when my contents has the true data. When creating a remote file, set localDataValid to true so it will write to server.

instance methods
  as yet unclassified
  close
contentsOfEntireFile
dataIsValid
directory
directoryUrl
localName
openReadOnly
padToEndWith:
readOnly
remoteFile
remoteFile:
sleep
url

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

close

Write if we have data to write. FTP files are always binary to preserve the data exactly. The binary/text (ascii) flag is just for tell how the bits are delivered from a read.


 

contentsOfEntireFile

Fetch the data off the server and store it in me. But not if I already have it.


 

dataIsValid


 

directory


 

directoryUrl


 

localName


 

openReadOnly

If we have data, don't reread.


 

padToEndWith:

On the Mac, files do not truncate, so pad it with a harmless character. But Remote FTP files always replace, so no need to pad.


 

readOnly


 

remoteFile


 

remoteFile:


 

sleep

If we are done, then let the server know


 

url


class methods
  no messages top