Java IO Tutorial - RandomAccessFile Example








Constructor

  1. Java RandomAccessFile(File file, String mode) Constructor
  2. Java RandomAccessFile(String name, String mode) Constructor

Method

  1. Java RandomAccessFile.close()
  2. Java RandomAccessFile.getChannel()
  3. Java RandomAccessFile.getFD()
  4. Java RandomAccessFile .getFilePointer ()
  5. Java RandomAccessFile.length()
  6. Java RandomAccessFile.read()
  7. Java RandomAccessFile.read(byte[] b)
  8. Java RandomAccessFile.read(byte[] b, int off, int len)
  9. Java RandomAccessFile .readBoolean ()
  10. Java RandomAccessFile.readByte()
  11. Java RandomAccessFile.readChar()
  12. Java RandomAccessFile.readDouble()
  13. Java RandomAccessFile.readFloat()
  14. Java RandomAccessFile .readFully (byte[] b)
  15. Java RandomAccessFile .readFully (byte[] b, int off, int len)
  16. Java RandomAccessFile.readInt()
  17. Java RandomAccessFile.readLine()
  18. Java RandomAccessFile.readLong()
  19. Java RandomAccessFile.readShort()
  20. Java RandomAccessFile .readUnsignedByte ()
  21. Java RandomAccessFile .readUnsignedShort ()
  22. Java RandomAccessFile.readUTF()
  23. Java RandomAccessFile.seek(long pos)
  24. Java RandomAccessFile .setLength (long newLength)
  25. Java RandomAccessFile .skipBytes (int n)
  26. Java RandomAccessFile.write(byte[] b)
  27. Java RandomAccessFile.write(byte[] b, int off, int len)
  28. Java RandomAccessFile.write(int b)
  29. Java RandomAccessFile .writeBoolean (boolean v)
  30. Java RandomAccessFile .writeByte (int v)
  31. Java RandomAccessFile .writeBytes (String s)
  32. Java RandomAccessFile .writeChar (int v)
  33. Java RandomAccessFile .writeChars (String s)
  34. Java RandomAccessFile .writeDouble (double v)
  35. Java RandomAccessFile .writeFloat (float v)
  36. Java RandomAccessFile.writeInt(int v)
  37. Java RandomAccessFile .writeLong (long v)
  38. Java RandomAccessFile .writeShort (int v)
  39. Java RandomAccessFile .writeUTF (String str)