compressedObject.js 805 B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. function CompressedObject() {
  3. this.compressedSize = 0;
  4. this.uncompressedSize = 0;
  5. this.crc32 = 0;
  6. this.compressionMethod = null;
  7. this.compressedContent = null;
  8. }
  9. CompressedObject.prototype = {
  10. /**
  11. * Return the decompressed content in an unspecified format.
  12. * The format will depend on the decompressor.
  13. * @return {Object} the decompressed content.
  14. */
  15. getContent: function() {
  16. return null; // see implementation
  17. },
  18. /**
  19. * Return the compressed content in an unspecified format.
  20. * The format will depend on the compressed conten source.
  21. * @return {Object} the compressed content.
  22. */
  23. getCompressedContent: function() {
  24. return null; // see implementation
  25. }
  26. };
  27. module.exports = CompressedObject;