package net.pms.dlna; import java.io.File; /** * TODO: Change all instance variables to private. For backwards compatibility * with external plugin code the variables have all been marked as deprecated * instead of changed to private, but this will surely change in the future. * When everything has been changed to private, the deprecated note can be * removed. */ public class InputFile { /** * @deprecated Use standard getter and setter to access this variable. */ @Deprecated public File file; /** * @deprecated Use standard getter and setter to access this variable. */ @Deprecated public IPushOutput push; /** * @deprecated Use standard getter and setter to access this variable. */ @Deprecated public String filename; /** * @deprecated Use standard getter and setter to access this variable. */ @Deprecated public long size; public String toString() { return file!=null?file.getName():(push!=null?"pipe":null); } /** * @return the file * @since 1.50 */ public File getFile() { return file; } /** * @param file the file to set * @since 1.50 */ public void setFile(File file) { this.file = file; } /** * @return the push * @since 1.50 */ public IPushOutput getPush() { return push; } /** * @param push the push to set * @since 1.50 */ public void setPush(IPushOutput push) { this.push = push; } /** * @return the filename * @since 1.50 */ public String getFilename() { return filename; } /** * @param filename the filename to set * @since 1.50 */ public void setFilename(String filename) { this.filename = filename; } /** * @return the size */ public long getSize() { return size; } /** * @param size the size to set */ public void setSize(long size) { this.size = size; } }