Class ShadowMemoryMappedFile


  • @Implements(value=libcore.io.MemoryMappedFile.class,
                isInAndroidSdk=false)
    public class ShadowMemoryMappedFile
    extends java.lang.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 Detail

      • bytes

        protected byte[] bytes
    • Constructor Detail

      • ShadowMemoryMappedFile

        public ShadowMemoryMappedFile()
    • Method Detail

      • mmapRO

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

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

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

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

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

        @Implementation
        public int size()