private String open() { String handle = _sysCaller.openObject3(_name, _perms); if (handle != null) { _isOpen = true; } return handle; }
@Override public void close() { try { if (_pmInputStream != null) { _pmInputStream.close(); _pmInputStream = null; } if (_pmOutputStream != null) { _pmOutputStream.close(); _pmOutputStream = null; } } catch (IOException e) { e.printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } _sysCaller.closeObject(getHandle()); _isOpen = false; }