public class PrepareAsciidoc extends ReadWriteFileBase
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PrepareAsciidoc.Args |
ReadWriteFileBase.ArgsBase
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
chpLabel |
(package private) int[] |
chpNr |
(package private) java.util.Map<java.lang.String,java.lang.String> |
idxChpLabel |
(package private) java.util.Map<java.lang.String,java.lang.String> |
idxChpNr |
private static java.lang.String |
sChpAdd |
static java.lang.String |
sVersion
Version, history and copyright/copyleft.
|
Constructor and Description |
---|
PrepareAsciidoc() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
addChapterNrToChapterLink(java.lang.String sLine)
Searches whether the line contains "<<#label>>" for a linked chapter
and pads it with the chapter number.
|
static void |
main(java.lang.String[] cmdArgs) |
(package private) void |
processChapterStruct(java.lang.String sLine,
PrepareAsciidoc.Args args) |
(package private) void |
processFile(java.io.Writer fwOut,
PrepareAsciidoc.Args args) |
(package private) void |
processIncludeAdoc(java.lang.String sLineIncl,
java.io.Writer fwOut,
java.io.File dirIn,
PrepareAsciidoc.Args args) |
(package private) void |
processLine(java.lang.String sLine,
java.io.BufferedReader frIn,
java.io.Writer fwOut,
java.io.File dirIn,
PrepareAsciidoc.Args args)
Replace something in line.
|
(package private) void |
processPre(java.io.BufferedReader frIn,
java.io.Writer fwOut,
java.io.File dirIn,
PrepareAsciidoc.Args args) |
(package private) void |
readTagFromFile(java.lang.String sfFile,
java.lang.String sTag,
java.io.Writer fwOut,
java.io.File dirIn,
PrepareAsciidoc.Args args) |
private java.lang.String |
replaceLink(java.lang.String sLine,
int posLink,
PrepareAsciidoc.Args args) |
private java.lang.String |
shortenPreLine(java.lang.String sLine,
PrepareAsciidoc.Args args) |
(package private) void |
skipPre(java.io.BufferedReader frIn) |
static void |
smain(PrepareAsciidoc.Args args) |
smain
public static final java.lang.String sVersion
private static java.lang.String sChpAdd
int[] chpNr
java.lang.String chpLabel
java.util.Map<java.lang.String,java.lang.String> idxChpLabel
java.util.Map<java.lang.String,java.lang.String> idxChpNr
public static void main(java.lang.String[] cmdArgs)
public static void smain(PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException
void processChapterStruct(java.lang.String sLine, PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException
void processFile(java.io.Writer fwOut, PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException
void processLine(java.lang.String sLine, java.io.BufferedReader frIn, java.io.Writer fwOut, java.io.File dirIn, PrepareAsciidoc.Args args) throws java.io.IOException
PrepareAsciidoc.Args.rlink
for the given number of ../
sLine
- args
- java.io.IOException
private java.lang.String replaceLink(java.lang.String sLine, int posLink, PrepareAsciidoc.Args args)
private java.lang.String addChapterNrToChapterLink(java.lang.String sLine)
sLine
- void processIncludeAdoc(java.lang.String sLineIncl, java.io.Writer fwOut, java.io.File dirIn, PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException
void processPre(java.io.BufferedReader frIn, java.io.Writer fwOut, java.io.File dirIn, PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException
void skipPre(java.io.BufferedReader frIn) throws java.io.IOException
java.io.IOException
private java.lang.String shortenPreLine(java.lang.String sLine, PrepareAsciidoc.Args args)
void readTagFromFile(java.lang.String sfFile, java.lang.String sTag, java.io.Writer fwOut, java.io.File dirIn, PrepareAsciidoc.Args args) throws java.io.IOException
java.io.IOException