public class CasIOUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
readCas(org.apache.uima.cas.CAS aCas,
File aFile)
This method loads the contents of an XMI or XCAS file into the given CAS.
|
static void |
readJCas(org.apache.uima.jcas.JCas aJCas,
File aFile)
This method loads the contents of an XMI or XCAS file into the given CAS.
|
static void |
readXCas(org.apache.uima.cas.CAS aCas,
File aFile) |
static void |
readXCas(org.apache.uima.jcas.JCas aJCas,
File aFile) |
static void |
readXmi(org.apache.uima.cas.CAS aCas,
File aFile) |
static void |
readXmi(org.apache.uima.jcas.JCas aJCas,
File aFile) |
static void |
writeXCas(org.apache.uima.cas.CAS aCas,
File aFile) |
static void |
writeXCas(org.apache.uima.jcas.JCas aJCas,
File aFile) |
static void |
writeXmi(org.apache.uima.cas.CAS aCas,
File aFile) |
static void |
writeXmi(org.apache.uima.jcas.JCas aJCas,
File aFile) |
public static void readCas(org.apache.uima.cas.CAS aCas, File aFile) throws IOException
aCas
- the target CASaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void readXmi(org.apache.uima.cas.CAS aCas, File aFile) throws IOException
aCas
- the target CASaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void writeXmi(org.apache.uima.cas.CAS aCas, File aFile) throws IOException
aCas
- the source CASaFile
- the file to write toIOException
- if there is a problem writing the filepublic static void readXCas(org.apache.uima.cas.CAS aCas, File aFile) throws IOException
aCas
- the target CASaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void writeXCas(org.apache.uima.cas.CAS aCas, File aFile) throws IOException
aCas
- the source CASaFile
- the file to write toIOException
- if there is a problem writing the filepublic static void readJCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException
aJCas
- the target JCasaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void readXmi(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException
aJCas
- the target JCasaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void writeXmi(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException
aJCas
- the source JCasaFile
- the file to write toIOException
- if there is a problem writing the filepublic static void readXCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException
aJCas
- the target JCasaFile
- the file to read fromIOException
- if there is a problem reading the filepublic static void writeXCas(org.apache.uima.jcas.JCas aJCas, File aFile) throws IOException
aJCas
- the source JCasaFile
- the file to write toIOException
- if there is a problem writing the fileCopyright © 2012–2014 The Apache Software Foundation. All rights reserved.