Class ShadowMemoryMappedFile

java.lang.Object
org.robolectric.shadows.ShadowMemoryMappedFile

@Implements(value=libcore.io.MemoryMappedFile.class, isInAndroidSdk=false) public class ShadowMemoryMappedFile extends Object
This is used by Android to load and inferFromValue time zone information. Robolectric emulates this functionality by proxying to a time zone database file packaged into the android-all jar.
  • Field Details

    • bytes

      protected byte[] bytes
  • Constructor Details

    • ShadowMemoryMappedFile

      public ShadowMemoryMappedFile()
  • Method Details

    • mmapRO

      @Implementation public static libcore.io.MemoryMappedFile mmapRO(String path) throws Throwable
      Throws:
      Throwable
    • close

      @Implementation public void close() throws Exception
      Throws:
      Exception
    • bigEndianIterator

      @Implementation public libcore.io.BufferIterator bigEndianIterator()
    • littleEndianIterator

      @Implementation public libcore.io.BufferIterator littleEndianIterator()
    • getHeapBufferIterator

      protected libcore.io.BufferIterator getHeapBufferIterator(ByteOrder endianness)
    • size

      @Implementation public int size()