|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.pfl.basic.tools.file.BlockParser
public class BlockParser
Utility class used to convert FileWrappers into (lists of) Blocks.
| Field Summary | |
|---|---|
static java.lang.String |
COMMENT_BLOCK_TAG
|
| Method Summary | |
|---|---|
static Block |
getBlock(FileWrapper fw)
Return the contents of the text file as a Block. |
static java.util.List<Block> |
parseBlocks(FileWrapper fw,
java.lang.String prefix)
Transform fw into a list of blocks. |
static java.util.List<Block> |
parseBlocks(FileWrapper fw,
java.lang.String start,
java.lang.String end)
Transform fw into a list of blocks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMMENT_BLOCK_TAG
| Method Detail |
|---|
public static Block getBlock(FileWrapper fw)
throws java.io.IOException
java.io.IOException
public static java.util.List<Block> parseBlocks(FileWrapper fw,
java.lang.String prefix)
throws java.io.IOException
java.io.IOException
public static java.util.List<Block> parseBlocks(FileWrapper fw,
java.lang.String start,
java.lang.String end)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||