khubla.com Telnet Server

A java TELNET server

License

License

Categories

Categories

Net
GroupId

GroupId

com.khubla.ktelnet
ArtifactId

ArtifactId

ktelnet
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

khubla.com Telnet Server
A java TELNET server
Project URL

Project URL

https://github.com/teverett/paradoxReader
Project Organization

Project Organization

khubla.com
Source Code Management

Source Code Management

https://github.com/teverett/paradoxReader.git

Download ktelnet

How to add to project

<!-- https://jarcasting.com/artifacts/com.khubla.ktelnet/ktelnet/ -->
<dependency>
    <groupId>com.khubla.ktelnet</groupId>
    <artifactId>ktelnet</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.khubla.ktelnet/ktelnet/
implementation 'com.khubla.ktelnet:ktelnet:1.1'
// https://jarcasting.com/artifacts/com.khubla.ktelnet/ktelnet/
implementation ("com.khubla.ktelnet:ktelnet:1.1")
'com.khubla.ktelnet:ktelnet:jar:1.1'
<dependency org="com.khubla.ktelnet" name="ktelnet" rev="1.1">
  <artifact name="ktelnet" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.khubla.ktelnet', module='ktelnet', version='1.1')
)
libraryDependencies += "com.khubla.ktelnet" % "ktelnet" % "1.1"
[com.khubla.ktelnet/ktelnet "1.1"]

Dependencies

test (2)

Group / Artifact Type Version
org.testng : testng jar 6.14.2
commons-net : commons-net jar 3.6

Project Modules

There are no modules declared in this project.

CI DepShield Badge

paradoxReader

Paradox Database File Reader

Maven Coordinates

<groupId>com.khubla.pdxreader</groupId>
<artifactId>pdxreader</artifactId>
<version>1.5</version>
<packaging>jar</packaging>

Using the paradoxReader from the command line

The command-line interface produces CSV from .DB files. An example invocation of the command-line interface which produces CSV from "CONTACTS.DB" is:

java -jar target/paradoxReader-1.0-jar-with-dependencies.jar --file=src/test/resources/CONTACTS.DB

Using the paradoxReader in code

To use the paradoxReader in code, supply an InputStream to a .DB file, and an implementation of PDXTableListener to the class DBTableFile. An example from the unit tests:

final InputStream inputStream = TestDBFile.class.getResourceAsStream(filename);
final DBTableFile pdxFile = new DBTableFile();
final PDXTableListener pdxTableListener = new MyPDXTableListener();
pdxFile.read(inputStream, pdxTableListener);

The interface PDXTableListener looks like this:

public interface PDXTableListener {
   void finish();

   void header(DBTableHeader pdxTableHeader);

   void record(List<DBTableValue> values);

   void start(String filename);
}

The record method will be called once per record in the table file.

SQL Output

Versions 1.6+ contain the class PDXTableReaderSQLListenerImpl, a class which produces CREATE and INSERT SQL.

Versions

Version
1.1
1.0