Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2012 Yannick Roffin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package org.jbehaviour.plugins.remote.impl;
 
 
 import  com.sshtools.j2ssh.sftp.SftpFile;
 
 public class ResourcesItem implements IResourcesItem {
 
 	boolean canRead;
 	boolean canWrite;
 	long size;
 	
 	public String toString() {
 		return "ResourcesItem [name=" +  + ", fullName=" + 
 				+ ", longName=" +  + ", canRead=" + 
 				+ ", canWrite=" +  + ", size=" +  + "]";
 	}

create from SftpFile

Parameters:
l
 
 	public ResourcesItem(SftpFile l) {
 		setName(l.getFilename());
 		setLongName(l.getLongname());
 		setCanRead(l.canRead());
 		setCanWrite(l.canWrite());
 		setSize(l.getAttributes().getSize().longValue());
 		setFullName(l.getAbsolutePath());
 	}
 
 	public String getFullName() {
 		return ;
 	}
 
 	public void setFullName(String fullName) {
 		this. = fullName;
 	}
 
 	public String getName() {
 		return ;
 	}
 
 	public void setName(String name) {
 		this. = name;
 	}
 
 	public String getLongName() {
 		return ;
 	}
 
 	public void setLongName(String longName) {
 		this. = longName;
 	}
 
 	public boolean isCanRead() {
 		return ;
 	}
 
 	public void setCanRead(boolean canRead) {
 		this. = canRead;
 	}
 
 	public boolean isCanWrite() {
 		return ;
 	}
 
 	public void setCanWrite(boolean canWrite) {
 		this. = canWrite;
 	}
 
	public long getSize() {
		return ;
	}
	public void setSize(long _size) {
		this. = _size;
	}
New to GrepCode? Check out our FAQ X