public long getLongValue ( ) throws ControlException { long v ; if ( type != V4L4JConstants . CTRL_TYPE_LONG ) throw new UnsupportedMethod ( "This control is not a long control" ) ; state . get ( ) ; try { v = doGetLongValue ( v4l4jObject , id ) ; } finally { state . put ( ) ; } return v ; }
This method retrieves the current long value of this control . Some controls may be write - only and getting their value does not make sense . Invoking this method on this kind of controls will trigger a ControlException .