All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.api.model.item.BasicPathItemFactory Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha5
Show newest version
package com.emc.mongoose.api.model.item;

import java.io.IOException;

/**
 Created by kurila on 30.01.17.
 */
public class BasicPathItemFactory
implements ItemFactory {
	
	@Override
	public I getItem(final String name, final long id, final long size) {
		return (I) new BasicPathItem(name);
	}
	
	@Override
	public I getItem(final String line) {
		return (I) new BasicPathItem(line);
	}
	
	@Override
	public Class getItemClass() {
		return (Class) BasicPathItem.class;
	}
	
	@Override
	public void close()
	throws IOException {
	}
}