Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Coding Tips

The following tips will help you along while coding Cargo containers

File I/O

FileHandler

FileHandler exposes many methods that you will need to implement Cargo containers and configurations.  Its default implementation VFSFileHandler supports temporary filesystems and can be used in unit tests.  Here is some guidance with regards to usage of this class.

Watch your file type!

The following method will corrupt binary files.  Please do not use this method unless your source is a text file.

    void copyFile(String source, String target, FilterChain filterChain);
 

 

 

  • No labels