Groovy Documentation

betamax
[Groovy] Interface TapeLoader


interface TapeLoader

The interface for factories that load tapes from file storage.


Method Summary
java.io.File fileFor(java.lang.String tapeName)

@return an appropriate file for storing a tape with the supplied name.

T loadTape(java.lang.String name)

Loads the named tape or returns a new blank tape if an existing tape cannot be located.

void writeTape(StorableTape tape)

 

Method Detail

fileFor

java.io.File fileFor(java.lang.String tapeName)
Returns:
an appropriate file for storing a tape with the supplied name.


loadTape

T loadTape(java.lang.String name)
Loads the named tape or returns a new blank tape if an existing tape cannot be located.
Parameters:
name - the name of the tape.
Returns:
a tape loaded from a file or a new blank tape.


writeTape

void writeTape(StorableTape tape)


 

Groovy Documentation