jmri.jmrix.pricom.downloader
Class PdiFile

java.lang.Object
  extended by 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

Constructor Summary
PdiFile(File file)
           
 
Method Summary
 String getComment()
          Return the comment embedded at the front of the file
 byte[] getNext(int n)
          Get the next n bytes for transmission to the device
 void open()
           
 void open(InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdiFile

public PdiFile(File file)
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads