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.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XCAS
instead.static void
Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XCAS
instead.static void
Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XMI
instead.static void
Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XMI
instead.
-
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 public static void writeXmi(org.apache.uima.cas.CAS aCas, File aFile) throws IOException Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XMI
instead.- Parameters:
aCas
- the source CASaFile
- the file to write to- Throws:
IOException
- if there is a problem writing the file
-
readXCas
@Deprecated public static void readXCas(org.apache.uima.cas.CAS aCas, File aFile) throws IOException 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 public static void writeXCas(org.apache.uima.cas.CAS aCas, File aFile) throws IOException Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XCAS
instead.- Parameters:
aCas
- the source CASaFile
- the file to write to- Throws:
IOException
- if there is a problem writing the file
-
readJCas
@Deprecated public static void readJCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException 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 public static void readXmi(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException 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 public static void writeXmi(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XMI
instead.- Parameters:
aJCas
- the source JCasaFile
- the file to write to- Throws:
IOException
- if there is a problem writing the file
-
readXCas
@Deprecated public static void readXCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException 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 public static void writeXCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException Deprecated.UseCasIOUtils.save(CAS, OutputStream, org.apache.uima.cas.SerialFormat)
withSerialFormat.XCAS
instead.- Parameters:
aJCas
- the source JCasaFile
- the file to write to- Throws:
IOException
- if there is a problem writing the file
-
CasIOUtils
should be used.