Lines Matching refs:java

28 import java.io.*;
29 import java.lang.*;
30 import java.net.*;
31 import java.util.*;
59 public static java.lang.String getFileURLFromSystemPath(java.io.File aSystemPath) in getFileURLFromSystemPath()
73 java.lang.String sFileURL = null; in getFileURLFromSystemPath()
83 java.lang.StringBuffer sWorkBuffer = new java.lang.StringBuffer(sFileURL); in getFileURLFromSystemPath()
105 public static java.lang.String getFileURLFromSystemPath(java.lang.String sSystemPath) in getFileURLFromSystemPath()
107 return getFileURLFromSystemPath(new java.io.File(sSystemPath)); in getFileURLFromSystemPath()
136 public static java.lang.String getURLWithProtocolFromSystemPath(java.io.File aSystemPath, in getURLWithProtocolFromSystemPath()
137 java.io.File aBasePath , in getURLWithProtocolFromSystemPath()
138 java.lang.String sServerURL ) in getURLWithProtocolFromSystemPath()
143 java.lang.String sFileURL = FileHelper.getFileURLFromSystemPath(aSystemPath); in getURLWithProtocolFromSystemPath()
144 java.lang.String sBaseURL = FileHelper.getFileURLFromSystemPath(aBasePath ); in getURLWithProtocolFromSystemPath()
155 java.lang.String sURL = null; in getURLWithProtocolFromSystemPath()
187 public static java.lang.String getURLWithProtocolFromSystemPath(java.lang.String sSystemPath, in getURLWithProtocolFromSystemPath()
188 java.lang.String sBasePath , in getURLWithProtocolFromSystemPath()
189 java.lang.String sServerPath) in getURLWithProtocolFromSystemPath()
191 …return getURLWithProtocolFromSystemPath(new java.io.File(sSystemPath), new java.io.File(sBasePath)… in getURLWithProtocolFromSystemPath()
213 public static java.util.Vector getSystemFilesFromDir(java.io.File aRoot , in getSystemFilesFromDir()
216 java.io.File[] lAllFiles = aRoot.listFiles(); in getSystemFilesFromDir()
221 java.util.Vector lFilteredFiles = new java.util.Vector(c); in getSystemFilesFromDir()
231java.util.Vector lSubFiles = FileHelper.getSystemFilesFromDir(lAllFiles[i],bRecursive); in getSystemFilesFromDir()
234 java.util.Enumeration aSnapshot = lSubFiles.elements(); in getSystemFilesFromDir()
256 public static java.lang.String convertName2FileName(String sName) in convertName2FileName()
262 java.lang.StringBuffer sNewName = new java.lang.StringBuffer(nLength); in convertName2FileName()
299 public static void makeDirectoryEmpty(java.io.File aDirectory, in makeDirectoryEmpty()
301 throws java.io.IOException in makeDirectoryEmpty()
304 … throw new java.io.FileNotFoundException("\""+aDirectory.toString()+"\" is not a directory."); in makeDirectoryEmpty()
306 java.io.File[] lChilds = aDirectory.listFiles(); in makeDirectoryEmpty()
315 … throw new java.io.IOException("\""+lChilds[f].toString()+"\" could not be deleted."); in makeDirectoryEmpty()
321 … throw new java.io.IOException("\""+lChilds[f].toString()+"\" could not be deleted."); in makeDirectoryEmpty()
352 public static java.io.File createUniqueFile(java.io.File aBaseDir , in createUniqueFile()
353 java.lang.String sBaseName , in createUniqueFile()
354 java.lang.String sExtension) in createUniqueFile()
356 java.io.File aBaseFile = new java.io.File(aBaseDir, sBaseName); in createUniqueFile()
357 java.io.File aFile = null; in createUniqueFile()
359 while (aFile == null && nr < java.lang.Long.MAX_VALUE) in createUniqueFile()
361java.lang.String sFileName = aBaseFile.getPath() + java.lang.String.valueOf(nr) + "." + sExtension; in createUniqueFile()
362 aFile = new java.io.File(sFileName); in createUniqueFile()
392 public static void readEncodedBufferFromFile(java.io.File aFile , in readEncodedBufferFromFile()
393 java.lang.String sEncoding, in readEncodedBufferFromFile()
394 java.lang.StringBuffer sBuffer ) in readEncodedBufferFromFile()
395 throws java.io.IOException in readEncodedBufferFromFile()
403java.io.FileInputStream aByteStream = new java.io.FileInputStream(aFile.getAbsolutePath()); in readEncodedBufferFromFile()
404java.io.InputStreamReader aEncodedReader = new java.io.InputStreamReader(aByteStream, sEncoding); in readEncodedBufferFromFile()
415 private static void logEncodingData(java.lang.StringBuffer sLog , in logEncodingData()
448 throws java.lang.Exception in impl_readAndCheckNextByte()
451 throw new java.lang.Exception("impl_readAndCheckNextByte()\nEnd of buffer reached."); in impl_readAndCheckNextByte()
459 …throw new java.lang.Exception("impl_readAndCheckNextByte()\nByte does not fit the specified range.… in impl_readAndCheckNextByte()
466 public static void readAndCheckUTF8File(java.io.File aFile , in readAndCheckUTF8File()
467 java.lang.StringBuffer sBuffer) in readAndCheckUTF8File()
468 throws java.io.IOException in readAndCheckUTF8File()
470java.io.FileInputStream aByteStream = new java.io.FileInputStream(aFile.getAbsolutePath()); in readAndCheckUTF8File()
484 java.lang.StringBuffer sLog = new java.lang.StringBuffer(); in readAndCheckUTF8File()
688 throw new java.lang.Exception("Non well formed UTF-8 encoding."); in readAndCheckUTF8File()
699 catch(java.lang.Throwable ex) in readAndCheckUTF8File()
704 java.io.File aDir = new java.io.File(aFile.getParent()); in readAndCheckUTF8File()
705 java.lang.String sDump = aFile.getName(); in readAndCheckUTF8File()
706 java.io.File aDump = FileHelper.createUniqueFile(aDir, sDump, "dump"); in readAndCheckUTF8File()
710 java.lang.String sMsg = "File '"+aFile.getPath()+"' is not encoded right as UTF-8."; in readAndCheckUTF8File()
711 throw new java.io.IOException(sMsg); in readAndCheckUTF8File()
741 public static void writeEncodedBufferToFile(java.io.File aFile , in writeEncodedBufferToFile()
742 java.lang.String sEncoding, in writeEncodedBufferToFile()
744 java.lang.StringBuffer sBuffer ) in writeEncodedBufferToFile()
745 throws java.io.IOException in writeEncodedBufferToFile()
747java.io.FileOutputStream aByteStream = new java.io.FileOutputStream(aFile.getAbsolutePath(), … in writeEncodedBufferToFile()
748java.io.OutputStreamWriter aEncodedWriter = new java.io.OutputStreamWriter(aByteStream, sEncoding); in writeEncodedBufferToFile()
750 java.lang.String sTemp = sBuffer.toString(); in writeEncodedBufferToFile()
757 … throw new java.io.IOException("File \""+aFile.getAbsolutePath()+"\" not written correctly."); in writeEncodedBufferToFile()