maven tells me i don't need these exception handlers ...
This commit is contained in:
parent
1d13db07c5
commit
8e413fa985
4 changed files with 52 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
*~
|
*~
|
||||||
.*.swp
|
.*.swp
|
||||||
|
Session.vim
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
|
|
47
pom.xml
Normal file
47
pom.xml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.redhat.trie</groupId>
|
||||||
|
<artifactId>trie</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.10</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcprov-jdk16</artifactId>
|
||||||
|
<version>1.44</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.3.2</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.6</source>
|
||||||
|
<target>1.6</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>2.4</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>com.hashbangbash.trie.App</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
|
@ -71,12 +71,7 @@ public class App {
|
||||||
|
|
||||||
|
|
||||||
public static List<String> hydrateFromBytes(byte[] compressedBlob) {
|
public static List<String> hydrateFromBytes(byte[] compressedBlob) {
|
||||||
try {
|
|
||||||
return Util.hydrateContentPackage(compressedBlob);
|
return Util.hydrateContentPackage(compressedBlob);
|
||||||
} catch (PayloadException ex) {
|
|
||||||
System.out.println(ex);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<String> hydrateFromFile(String filename) {
|
public static List<String> hydrateFromFile(String filename) {
|
||||||
|
|
|
@ -98,14 +98,9 @@ public class Util {
|
||||||
*
|
*
|
||||||
* Rename it for tracking, and to be clear about what is happening
|
* Rename it for tracking, and to be clear about what is happening
|
||||||
*/
|
*/
|
||||||
public static List<String> hydrateContentPackage(byte[] compressedBlob)
|
public static List<String> hydrateContentPackage(byte[] compressedBlob) {
|
||||||
throws PayloadException {
|
|
||||||
try {
|
|
||||||
PathTree pt = new PathTree(compressedBlob);
|
PathTree pt = new PathTree(compressedBlob);
|
||||||
return pt.toList();
|
return pt.toList();
|
||||||
} catch (Throwable t) {
|
|
||||||
throw t;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue