@Override public String toString () { return new String( "NetServerEnum2Response[" + super.toString() + ",status=" + this.getStatus() + ",converter=" + this.converter + ",entriesReturned=" + this.getNumEntries() + ",totalAvailableEntries=" + this.totalAvailableEntries + ",lastName=" + this.lastName + "]"); } }
@Override public String toString () { return new String( "NetServerEnum2Response[" + super.toString() + ",status=" + this.getStatus() + ",converter=" + this.converter + ",entriesReturned=" + this.getNumEntries() + ",totalAvailableEntries=" + this.totalAvailableEntries + ",lastName=" + this.lastName + "]"); } }
/** * @throws SmbException */ private void checkStatus () throws SmbException { int status = this.response.getStatus(); if ( status == WinError.ERROR_SERVICE_NOT_INSTALLED ) { throw new SmbUnsupportedOperationException(); } if ( status != WinError.ERROR_SUCCESS && status != WinError.ERROR_MORE_DATA ) { throw new SmbException(status, true); } }
/** * @throws SmbException */ private void checkStatus () throws SmbException { int status = this.response.getStatus(); if ( status == WinError.ERROR_SERVICE_NOT_INSTALLED ) { throw new SmbUnsupportedOperationException(); } if ( status != WinError.ERROR_SUCCESS && status != WinError.ERROR_MORE_DATA ) { throw new SmbException(status, true); } }
private FileEntry advance () throws CIFSException { int n = this.response.getStatus() == WinError.ERROR_MORE_DATA ? this.response.getNumEntries() - 1 : this.response.getNumEntries(); while ( this.ridx < n ) { FileEntry itm = this.response.getResults()[ this.ridx ]; this.ridx++; if ( filter(itm) ) { return itm; } } if ( this.workgroup && this.response.getStatus() == WinError.ERROR_MORE_DATA ) { this.request.reset(0, this.response.getLastName()); this.response.reset(); this.request.setSubCommand(SmbComTransaction.NET_SERVER_ENUM3); this.treeHandle.send(this.request, this.response); checkStatus(); this.ridx = 0; return advance(); } return null; }
private FileEntry advance () throws CIFSException { int n = this.response.getStatus() == WinError.ERROR_MORE_DATA ? this.response.getNumEntries() - 1 : this.response.getNumEntries(); while ( this.ridx < n ) { FileEntry itm = this.response.getResults()[ this.ridx ]; this.ridx++; if ( filter(itm) ) { return itm; } } if ( this.workgroup && this.response.getStatus() == WinError.ERROR_MORE_DATA ) { this.request.reset(0, this.response.getLastName()); this.response.reset(); this.request.setSubCommand(SmbComTransaction.NET_SERVER_ENUM3); this.treeHandle.send(this.request, this.response); checkStatus(); this.ridx = 0; return advance(); } return null; }