001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package org.anarres.qemu.exec.host.chardev; 006 007import java.util.Map; 008 009/** 010 * 011 * @author shevek 012 */ 013public class LinuxParportCharDevice extends AbstractCharDevice { 014 015 private final int index; 016 017 public LinuxParportCharDevice(int index) { 018 super("parallel"); 019 this.index = index; 020 } 021 022 @Override 023 protected void addProperties(Map<String, Object> m) { 024 super.addProperties(m); 025 m.put("path", "/dev/parport" + index); 026 } 027 028 @Override 029 public String toString() { 030 return "/dev/parport" + index; 031 } 032}