jmri.jmrix.pricom.downloader
Class PdiFile
java.lang.Object
jmri.jmrix.pricom.downloader.PdiFile
public class PdiFile
- extends Object
Support for reading PRICOM ".pdi" files
The PRICOM format documentation is Copyright 2003, 2005, PRICOM Corp.
They have kindly given permission for this use.
- Author:
- Bob Jacobsen Copyright (C) 2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdiFile
public PdiFile(File file)
open
public void open()
throws IOException
- Throws:
IOException
open
public void open(InputStream stream)
throws IOException
- Throws:
IOException
getComment
public String getComment()
- Return the comment embedded at the front of the file
getNext
public byte[] getNext(int n)
- Get the next n bytes for transmission to the device
- Parameters:
n - number of data bytes to include
- Returns:
- byte buffer, starting with address info and containing data, but not CRC
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: