2 function CompressedObject() {
3 this.compressedSize = 0;
4 this.uncompressedSize = 0;
6 this.compressionMethod = null;
7 this.compressedContent = null;
10 CompressedObject.prototype = {
12 * Return the decompressed content in an unspecified format.
13 * The format will depend on the decompressor.
14 * @return {Object} the decompressed content.
16 getContent: function() {
17 return null; // see implementation
20 * Return the compressed content in an unspecified format.
21 * The format will depend on the compressed conten source.
22 * @return {Object} the compressed content.
24 getCompressedContent: function() {
25 return null; // see implementation
28 module.exports = CompressedObject;