public final class ImportUtils extends Object
| Constructor and Description |
|---|
ImportUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.openide.filesystems.FileObject |
getArchivedFile(org.openide.filesystems.FileObject fileObject) |
static File |
getBzipFile(org.openide.filesystems.FileObject in,
File out,
boolean isTar) |
static File |
getGzFile(org.openide.filesystems.FileObject in,
File out,
boolean isTar) |
static LineNumberReader |
getTextReader(org.openide.filesystems.FileObject fileObject)
Returns a
LineNumberReader for fileObject. |
static LineNumberReader |
getTextReader(InputStream stream)
Returns a
LineNumberReader for inputStream. |
static LineNumberReader |
getTextReader(Reader reader) |
static Document |
getXMLDocument(org.openide.filesystems.FileObject fileObject) |
static Document |
getXMLDocument(InputStream stream) |
static Document |
getXMLDocument(Reader reader) |
static XMLStreamReader |
getXMLReader(Reader reader) |
static Color |
parseColor(String colorString) |
public static LineNumberReader getTextReader(org.openide.filesystems.FileObject fileObject) throws IOException
LineNumberReader for fileObject. The
file must be a text file. The charset is detected automatically.fileObject - the file object that is to be readIOException - if the file can't be found or readpublic static LineNumberReader getTextReader(InputStream stream) throws IOException
LineNumberReader for inputStream. The
stream must be a character stream. The charset is detected automatically.stream - the stream that is to be readIOException - if the stream can't be readpublic static LineNumberReader getTextReader(Reader reader)
public static Document getXMLDocument(InputStream stream) throws RuntimeException
RuntimeExceptionpublic static Document getXMLDocument(Reader reader) throws RuntimeException
RuntimeExceptionpublic static Document getXMLDocument(org.openide.filesystems.FileObject fileObject) throws RuntimeException
RuntimeExceptionpublic static XMLStreamReader getXMLReader(Reader reader)
public static org.openide.filesystems.FileObject getArchivedFile(org.openide.filesystems.FileObject fileObject)
public static File getBzipFile(org.openide.filesystems.FileObject in, File out, boolean isTar) throws IOException
IOExceptionpublic static File getGzFile(org.openide.filesystems.FileObject in, File out, boolean isTar) throws IOException
IOExceptionCopyright © 2007–2015 Gephi Consortium. All rights reserved.