blob: 87ac3c7ce2518bee9cca7fa20764d40d67a8cc34 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.uima.cas;
/**
* The various forms of serialization (typically of the CAS)
*
*/
public enum SerialFormat {
/**
* Unknown format
*/
UNKNOWN(""),
/**
* XML-serialized CAS
*/
XCAS("xcas"),
/**
* XML-serialized CAS
*/
XMI("xmi"),
/**
* Java-serialized CAS without type system, no filtering
*/
BINARY("bcas"),
/**
* Binary compressed CAS without type system, no filtering (form 4)
*/
COMPRESSED("bcas"),
/**
* Binary compressed CAS with reachability and type and feature filtering (form 6)
*/
COMPRESSED_FILTERED("bcas"),
/**
* with subset of views (not in use)
*/
COMPRESSED_PROJECTION("bcas"),
/**
* Java-serialized CAS without type system
*/
SERIALIZED("scas"),
/**
* Java-serialized CAS with type system and index definitions
*/
SERIALIZED_TSI("scas"),
/**
* Binary compressed CAS with embedded Java-serialized type system
* with reachability and type and feature filtering (form 6)
*/
COMPRESSED_FILTERED_TSI("bcas");
private String defaultFileExtension;
SerialFormat(String defaultFileExtension) {
this.defaultFileExtension = defaultFileExtension;
}
public String getDefaultFileExtension() {
return defaultFileExtension;
}
}