Example usage for org.apache.poi.hssf.record DConRefRecord getReadablePath

List of usage examples for org.apache.poi.hssf.record DConRefRecord getReadablePath

Introduction

In this page you can find the example usage for org.apache.poi.hssf.record DConRefRecord getReadablePath.

Prototype

public String getReadablePath() 

Source Link

Usage

From source file:org.ddt.listener.records.DConRefRecordTest.java

License:Apache License

/**
 * This one doesn't fail (unless the constructor dies), but is there to show the output of
 * different path types./*from   w ww .  ja  v a2s  . c o m*/
 */
@Test
public void testGetReadablePath() {
    System.out.println("Testing Readableness of the Path:-------------------");
    DConRefRecord r = new DConRefRecord(TestcaseRecordInputStream.create(81, transferProtocolString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, simpleFilePathDconString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, uncVolumeString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, volumeString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, startupString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, altStartupString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());

    r = new DConRefRecord(TestcaseRecordInputStream.create(81, libraryString));
    System.out.print(new String(r.getPath()) + " --> ");
    System.out.println(r.getReadablePath());
}