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 void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.UseCasIOUtils.load(java.net.URL, CAS)
instead.static void
Deprecated.static void
Deprecated.static void
Deprecated.static void
Deprecated.
-
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
-
CasIOUtils
should be used.