FatReader implements BlockDevice { @Override public boolean isReadOnly() { return true; } FatReader(final WindowReader reader); @Override long getSize(); @Override void read(final long devOffset, final ByteBuffer dest); @Override void write(long devOffset, ByteBuffer src); @Override void flush(); @Override int getSectorSize(); @Override void close(); @Override boolean isClosed(); @Override String toString(); @Override boolean isReadOnly();  }
@Test public void testIsReadOnly() throws Exception { assertTrue(fat.isReadOnly()); }