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
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()
-
Field Details
-
bytes
protected byte[] bytes
-
-
Constructor Details
-
ShadowMemoryMappedFile
public ShadowMemoryMappedFile()
-
-
Method Details
-
mmapRO
- Throws:
Throwable
-
close
- Throws:
Exception
-
bigEndianIterator
-
littleEndianIterator
-
getHeapBufferIterator
-
size
-