├── .gitignore ├── LICENSE ├── Masterproef.iml ├── README.md ├── examples ├── Ouroboros.zip └── zipquine.zip ├── pom.xml └── src ├── main └── kotlin │ ├── Main.kt │ ├── huffman │ ├── CompositeNode.kt │ ├── HuffmanCompressor.kt │ ├── LeafNode.kt │ └── Node.kt │ ├── lz77 │ ├── LZ77Compressor.kt │ ├── LZ77Literal.kt │ ├── LZ77Repeat.kt │ └── LZ77Token.kt │ ├── utils │ └── Utils.kt │ └── zip │ ├── CRC32Engine.kt │ └── ZIPArchiver.kt └── test ├── kotlin ├── CRC32Test.kt ├── HuffmanTest.kt └── LZ77Test.kt └── resources ├── hanshqHuffmanExample.txt ├── hanshqLZ77Example.txt └── zlibExample.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /Masterproef.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/Masterproef.iml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/README.md -------------------------------------------------------------------------------- /examples/Ouroboros.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/examples/Ouroboros.zip -------------------------------------------------------------------------------- /examples/zipquine.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/examples/zipquine.zip -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/kotlin/Main.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/Main.kt -------------------------------------------------------------------------------- /src/main/kotlin/huffman/CompositeNode.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/huffman/CompositeNode.kt -------------------------------------------------------------------------------- /src/main/kotlin/huffman/HuffmanCompressor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/huffman/HuffmanCompressor.kt -------------------------------------------------------------------------------- /src/main/kotlin/huffman/LeafNode.kt: -------------------------------------------------------------------------------- 1 | package huffman 2 | 3 | class LeafNode(val symbol: UByte, override var weight: Int = 0): Node 4 | -------------------------------------------------------------------------------- /src/main/kotlin/huffman/Node.kt: -------------------------------------------------------------------------------- 1 | package huffman 2 | 3 | interface Node { 4 | var weight: Int 5 | } -------------------------------------------------------------------------------- /src/main/kotlin/lz77/LZ77Compressor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/lz77/LZ77Compressor.kt -------------------------------------------------------------------------------- /src/main/kotlin/lz77/LZ77Literal.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/lz77/LZ77Literal.kt -------------------------------------------------------------------------------- /src/main/kotlin/lz77/LZ77Repeat.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/lz77/LZ77Repeat.kt -------------------------------------------------------------------------------- /src/main/kotlin/lz77/LZ77Token.kt: -------------------------------------------------------------------------------- 1 | package lz77 2 | 3 | interface LZ77Token { 4 | } -------------------------------------------------------------------------------- /src/main/kotlin/utils/Utils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/utils/Utils.kt -------------------------------------------------------------------------------- /src/main/kotlin/zip/CRC32Engine.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/zip/CRC32Engine.kt -------------------------------------------------------------------------------- /src/main/kotlin/zip/ZIPArchiver.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/main/kotlin/zip/ZIPArchiver.kt -------------------------------------------------------------------------------- /src/test/kotlin/CRC32Test.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/kotlin/CRC32Test.kt -------------------------------------------------------------------------------- /src/test/kotlin/HuffmanTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/kotlin/HuffmanTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/LZ77Test.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/kotlin/LZ77Test.kt -------------------------------------------------------------------------------- /src/test/resources/hanshqHuffmanExample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/resources/hanshqHuffmanExample.txt -------------------------------------------------------------------------------- /src/test/resources/hanshqLZ77Example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/resources/hanshqLZ77Example.txt -------------------------------------------------------------------------------- /src/test/resources/zlibExample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ruvmello/zip-quine-generator/HEAD/src/test/resources/zlibExample.txt --------------------------------------------------------------------------------