~ubuntu-branches/ubuntu/edgy/rxtx/edgy-201105201527

« back to all changes in this revision

Viewing changes to src/LPRPort.java

  • Committer: Bazaar Package Importer
  • Author(s): Mario Joussen
  • Date: 2006-03-01 18:56:52 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060301185652-qqaxmsc37np81hr3
Tags: upstream-2.1.7
ImportĀ upstreamĀ versionĀ 2.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*-------------------------------------------------------------------------
2
2
|   rxtx is a native interface to communication ports in java.
3
 
|   Copyright 1997-2002 by Trent Jarvi taj@www.linux.org.uk
 
3
|   Copyright 1997-2004 by Trent Jarvi taj@www.linux.org.uk
4
4
|
5
5
|   This library is free software; you can redistribute it and/or
6
6
|   modify it under the terms of the GNU Library General Public
109
109
        public native boolean isPrinterSelected();
110
110
        public native boolean isPrinterTimedOut();
111
111
        
112
 
        /** Line speed in bits-per-second */
113
 
        private int speed;
114
 
        public int getBaudRate() { return speed; }
115
 
 
116
 
        /** Data bits port parameter */
117
 
        private int dataBits;
118
 
        public int getDataBits() { return dataBits; }
119
 
 
120
 
        /** Stop bits port parameter */
121
 
        private int stopBits;
122
 
        public int getStopBits() { return stopBits; }
123
 
 
124
 
        /** Parity port parameter */
125
 
        private int parity;
126
 
        public int getParity() { return parity; }
127
 
 
128
112
        /** Close the port */
129
113
        private native void nativeClose();
130
114
        public synchronized void close()