Squeak Class Documentation category index | class index  
 
CodeLoader
  category: Framework-Download
  superclass: Object
  subclasses: CachingCodeLoader

CodeLoader provides a simple facility for loading code from the network.

Examples:
| loader |
loader _ CodeLoader new.
loader baseURL:'http://isgwww.cs.uni-magdeburg.de/~raab/test/'.
loader localCache: #('.cache' 'source').
"Sources and segments can be loaded in parallel"
loader loadSourceFiles: #('file1.st' 'file2.st.gz').
loader localCache: #('.cache' 'segments').
loader loadSegments: #('is1.extseg' 'is2.extseg.gz').
"Install sources first - will wait until the files are actually loaded"
loader installSourceFiles.
"And then the segments"
loader installSegments.

instance methods
  accessing
  baseURL
baseURL:
publicKey
publicKey:

  initialize-release
  initialize

  installing
  installProject
installSegment:
installSegments
installSourceFile:
installSourceFiles

  loading
  loadSegments:
loadSourceFiles:

  private
  createRequestFor:in:
httpRequestClass

class methods
  accessing
  defaultBaseURL
defaultBaseURL:
defaultKey
defaultKey:

  instance creation
  new

  utilities
  compressFileNamed:
compressFileNamed:in:
exportCategories:to:
exportCategoryNamed:
exportClassesNamed:to:
exportCodeSegment:classes:keepSource:
loadCode:from:ifClassNotLoaded:
loadCodeSegment:
signFile:renameAs:key:dsa:
signFiles:in:key:
signFiles:key:
signFilesFrom:to:key:
verifySignedFileNamed:

instance methods
  accessing top  
 

baseURL


 

baseURL:


 

publicKey


 

publicKey:


  initialize-release top  
 

initialize


  installing top  
 

installProject

Assume that we're loading a single file and it's a project


 

installSegment:

Install the previously loaded segment


 

installSegments

Install the previously loaded segments


 

installSourceFile:

Install the previously loaded source file


 

installSourceFiles

Install the previously loaded source files


  loading top  
 

loadSegments:

Load all the source files in the given array.


 

loadSourceFiles:

Load all the source files in the given array.


  private top  
 

createRequestFor:in:

Create a URL request for the given string, which can be cached locally.


 

httpRequestClass


class methods
  accessing top  
 

defaultBaseURL


 

defaultBaseURL:


 

defaultKey

Return the default key used for verifying signatures of loaded code


 

defaultKey:

Store the default key used for verifying signatures of loaded code


  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.


  utilities top  
 

compressFileNamed:


 

compressFileNamed:in:

Compress the currently selected file


 

exportCategories:to:

CodeLoader exportCategories: #( 'Game-Animation' 'Game-Framework' ) to: 'Game-Framework'


 

exportCategoryNamed:

CodeLoader exportCategoryNamed: 'OceanicPanic'


 

exportClassesNamed:to:


 

exportCodeSegment:classes:keepSource:

Code for writing out a specific category of classes as an external image segment. Perhaps this should be a method.


 

loadCode:from:ifClassNotLoaded:


 

loadCodeSegment:


 

signFile:renameAs:key:dsa:

Sign the given file using the private key.


 

signFiles:in:key:

Sign the files in the current directory and put them into a folder signed.


 

signFiles:key:

Sign the files in the current directory and put them into a folder signed.


 

signFilesFrom:to:key:

Sign all the given files using the private key.
This will add an 's' to the extension of the file.


 

verifySignedFileNamed:

CodeLoader verifySignedFileNamed: 'signed\dummy1.dsq'