public static STATUS lookup(int val) {
            int i = val - 1;
            if (i < 0) {
                throw new IllegalArgumentException("byte must be > 0");
            }
            STATUS[] statuses = STATUS.values();

            if (i >= statuses.length) {
                throw new IllegalArgumentException(
                        "byte with index " + i + " must be < " + statuses.length);
            }
            return statuses[i];
        }
This server is forked from the PipesClient.  This class isolates
parsing from the client to protect the primary JVM.
<p>
When configuring logging for this class, make absolutely certain
not to write to STDOUT.  This class uses STDOUT to communicate with
the PipesClient.
tika-core/src/main/java/org/apache/tika/pipes/PipesServer.java