public class CasIOUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
readCas(CAS aCas,
File aFile)
This method loads the contents of an XMI or XCAS file into the given CAS.
|
static void |
readJCas(JCas aJCas,
File aFile)
This method loads the contents of an XMI or XCAS file into the given CAS.
|
static void |
readXCas(CAS aCas,
File aFile) |
static void |
readXCas(JCas aJCas,
File aFile) |
static void |
readXmi(CAS aCas,
File aFile) |
static void |
readXmi(JCas aJCas,
File aFile) |
static void |
writeXCas(CAS aCas,
File aFile) |
static void |
writeXCas(JCas aJCas,
File aFile) |
static void |
writeXmi(CAS aCas,
File aFile) |
static void |
writeXmi(JCas aJCas,
File aFile) |
public static void readCas(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(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(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(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(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(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(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(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(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(JCas aJCas, File aFile) throws IOException
aJCas - the source JCasaFile - the file to write toIOException - if there is a problem writing the fileCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.