com.buglabs.bug.jni.common
Class CharDevice

java.lang.Object
  extended by com.buglabs.bug.jni.common.CharDevice
Direct Known Subclasses:
BugBeep, Camera, GPS, InputDevice, NativeBaseDisplay

public class CharDevice
extends java.lang.Object


Field Summary
protected  int fd
           
 
Constructor Summary
CharDevice()
           
 
Method Summary
 int close()
           
 int getFileDescriptor()
           
 java.lang.String getline()
           
 int ioctl(int request)
           
 long lseek(long offset, int whence)
           
 int open(java.lang.String file, int mode)
           
 int read()
           
 long write(byte[] buf, long count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fd

protected int fd
Constructor Detail

CharDevice

public CharDevice()
Method Detail

getFileDescriptor

public int getFileDescriptor()

open

public int open(java.lang.String file,
                int mode)

getline

public java.lang.String getline()

read

public int read()

lseek

public long lseek(long offset,
                  int whence)

write

public long write(byte[] buf,
                  long count)

ioctl

public int ioctl(int request)

close

public int close()