Package org.robolectric.shadows
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ShadowMemoryMappedFile.RoboBufferIterator
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
bytes
-
Constructor Summary
Constructors Constructor Description ShadowMemoryMappedFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description libcore.io.BufferIterator
bigEndianIterator()
void
close()
protected libcore.io.BufferIterator
getHeapBufferIterator(ByteOrder endianness)
libcore.io.BufferIterator
littleEndianIterator()
static libcore.io.MemoryMappedFile
mmapRO(String path)
int
size()
-
-
-
Method Detail
-
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()
-
-