public class IO
extends java.lang.Object
Constructor and Description |
---|
IO() |
Modifier and Type | Method and Description |
---|---|
static void |
export(java.io.File soubor)
Export of data.
|
static java.lang.String |
exportDokumentuTXT()
Creates a text file containing all documents stored in the application data.
|
static java.text.DecimalFormat |
formatDouble()
Returns information about (reduced) format of double numbers.
|
static void |
importuj(java.io.File soubor)
Import data.
|
static java.lang.String |
souborNaString(java.io.File soubor)
Converts given file into a string.
|
static void |
stringNaSoubor(java.lang.String data,
java.io.File soubor)
Stores a given string into a file.
|
static void |
ulozDokumenty(java.io.File soubor)
Stores all documents into a given file.
|
public static final java.text.DecimalFormat formatDouble()
public static void export(java.io.File soubor) throws java.io.IOException
soubor
- a target file to generate datajava.io.IOException
public static void importuj(java.io.File soubor) throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.Exception
soubor
- an input XML filejava.io.IOException
javax.xml.bind.JAXBException
java.lang.Exception
public static java.lang.String souborNaString(java.io.File soubor) throws java.io.IOException
soubor
- a given input filejava.io.IOException
public static void stringNaSoubor(java.lang.String data, java.io.File soubor) throws java.lang.Exception
data
- an input stringsoubor
- an output filejava.lang.Exception
public static java.lang.String exportDokumentuTXT() throws java.lang.Exception
java.lang.Exception
public static void ulozDokumenty(java.io.File soubor) throws java.lang.Exception
soubor
- an output filejava.lang.Exception