org.apache.activemq.apollo.util

IOHelper

object IOHelper extends

Visibility
  1. Public
  2. All

Type Members

  1. trait HardLinkStrategy extends AnyRef

  2. trait SyncStrategy extends AnyRef

Value Members

  1. def close (in: InputStream): Unit

  2. def close (out: OutputStream): Unit

  3. def close (out: Writer): Unit

  4. def copyFile (src: File, dest: File): Unit

  5. def copyInputStream (in: InputStream, out: OutputStream): Unit

  6. def deleteChildren (parent: File): Boolean

  7. def deleteFile (fileToDelete: File): Boolean

  8. def getCLibrary (): CLibrary

  9. def getDefaultDataDirectory (): String

  10. def getDefaultDirectoryPrefix (): String

  11. def getDefaultStoreDirectory (): String

  12. def getKernel32Library (): Kernel32Library

  13. def hardlink (source: File, target: File): Unit

  14. def mkdirs (dir: File): Unit

  15. def moveFile (src: File, targetDirectory: File): Unit

  16. def readBytes (in: InputStream): Array[Byte]

  17. def readBytes (path: File): Array[Byte]

  18. def readText (in: InputStream, encoding: String): String

  19. def readText (in: InputStream): String

  20. def readText (path: File, encoding: String): String

  21. def readText (path: File): String

  22. def sync (fd: FileDescriptor): Unit

  23. def toFileSystemDirectorySafeName (name: String): String

  24. def toFileSystemSafeName (name: String, dirSeparators: Boolean, maxFileLength: Int): String

  25. def toFileSystemSafeName (name: String): String

  26. def writeBinaryFile (path: File, contents: Array[Byte]): Unit

  27. def writeText (path: File, text: String, encoding: String): Unit

  28. def writeText (path: File, text: String): Unit