Package org.robolectric.interceptors
Class AndroidInterceptors.FileDescriptorInterceptor
java.lang.Object
org.robolectric.internal.bytecode.Interceptor
org.robolectric.interceptors.AndroidInterceptors.FileDescriptorInterceptor
- Enclosing class:
- AndroidInterceptors
public static class AndroidInterceptors.FileDescriptorInterceptor extends Interceptor
Intercepts calls to libcore-extensions to 
FileDescriptor.
 libcore implements extensions to FileDescriptor that support ownership tracking of
 unix FDs, which are not part of the Java API. This intercepts calls to these and maps them to
 the OpenJDK API.
- 
Constructor SummaryConstructors Constructor Description FileDescriptorInterceptor()
- 
Method SummaryModifier and Type Method Description MethodHandlegetMethodHandle(String methodName, MethodType type)Function<Object,Object>handle(MethodSignature methodSignature)Methods inherited from class org.robolectric.internal.bytecode.InterceptorgetMethodRefs, returnDefaultValue
- 
Constructor Details- 
FileDescriptorInterceptorpublic FileDescriptorInterceptor()
 
- 
- 
Method Details- 
handle- Specified by:
- handlein class- Interceptor
 
- 
getMethodHandlepublic MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException- Specified by:
- getMethodHandlein class- Interceptor
- Throws:
- NoSuchMethodException
- IllegalAccessException
 
 
-