Package org.apache.uima.fit.util
Class CasIOUtil
java.lang.Object
org.apache.uima.fit.util.CasIOUtil
Deprecated.
Convenience methods for loading and saving CAS to disk.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.static voidDeprecated.static voidDeprecated.static voidDeprecated.static voidDeprecated.
-
Method Details
-
readCas
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.This method loads the contents of an XMI or XCAS file into the given CAS. The file type is detected by the extension.- Parameters:
aCas- the target CASaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
readXmi
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.- Parameters:
aCas- the target CASaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
writeXmi
Deprecated.- Parameters:
aCas- the source CASaFile- the file to write to- Throws:
IOException- if there is a problem writing the file
-
readXCas
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.- Parameters:
aCas- the target CASaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
writeXCas
Deprecated.- Parameters:
aCas- the source CASaFile- the file to write to- Throws:
IOException- if there is a problem writing the file
-
readJCas
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.This method loads the contents of an XMI or XCAS file into the given CAS. The file type is detected by the extension.- Parameters:
aJCas- the target JCasaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
readXmi
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.- Parameters:
aJCas- the target JCasaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
writeXmi
Deprecated.- Parameters:
aJCas- the source JCasaFile- the file to write to- Throws:
IOException- if there is a problem writing the file
-
readXCas
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)instead.- Parameters:
aJCas- the target JCasaFile- the file to read from- Throws:
IOException- if there is a problem reading the file
-
writeXCas
Deprecated.- Parameters:
aJCas- the source JCasaFile- the file to write to- Throws:
IOException- if there is a problem writing the file
-
CasIOUtilsshould be used.