|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.utils.HelperFileUtil
public class HelperFileUtil
Utility Class for File manipulation
Field Summary | |
---|---|
static int |
DISABLE
|
static int |
ENABLE
|
Constructor Summary | |
---|---|
HelperFileUtil()
|
Method Summary | |
---|---|
static void |
changeIDLIncludeStaus(URL idlUrl,
int type)
Remove same specified include from the Idl File passed as argument Process Idl starting from file URL and comments all #include orb.idl or ir.idl |
static void |
copyFile(File in,
File out)
Copy a file. |
static void |
copyFile(URL in,
File out)
Copy a file from an URL |
static String |
readFileAsString(File f)
Reads file content as a String . |
static String |
readIdlFromFile(File wsdlFile)
Reads WSDL file and return IDL as a String . |
static void |
writeToFile(InputStream in,
File file)
Write Inpustream on File |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ENABLE
public static final int DISABLE
Constructor Detail |
---|
public HelperFileUtil()
Method Detail |
---|
public static String readFileAsString(File f) throws IOException
String
.
f
- the file to read. Must be not null
.
String
representing f
content, with
lines separated by the system dependent terminator string. The
returned String
is never null
, but it
may be empty (""
).
IOException
- if the file does not exist, is a directory rather
than a regular file, for some other reason cannot
be opened for reading or an I/O error occurs.public static String readIdlFromFile(File wsdlFile) throws IOException
String
.
f
- the WSDL file to read. Must be not null
.
String
representing IDL
content. The
returned String
is never null
, but it
may be empty (""
).
IOException
- if the file does not exist, is a directory rather
than a regular file, for some other reason cannot
be opened for reading or an I/O error occurs.public static void writeToFile(InputStream in, File file) throws FileNotFoundException, IOException
InputStream
- Must be not null
.
IOException
- if the file does not exist, is a directory rather
than a regular file, for some other reason cannot
be opened for reading or an I/O error occurs.
FileNotFoundException
public static void copyFile(File in, File out) throws IOException
in
- out
-
Exception
IOException
public static void copyFile(URL in, File out) throws IOException
in
- out
-
Exception
IOException
public static void changeIDLIncludeStaus(URL idlUrl, int type) throws FileNotFoundException, URISyntaxException, IOException
idlUrl
-
FileNotFoundException
URISyntaxException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |