public class RefLogFileWriter extends Object implements FileWriter, LogNode
| Modifier and Type | Field and Description |
|---|---|
protected Lock |
lock |
protected int |
maxResolveCount |
protected int |
resolveCount |
protected FileWriter |
resolvedFileWriter |
| Constructor and Description |
|---|
RefLogFileWriter() |
RefLogFileWriter(RefLogFileWriter src) |
| Modifier and Type | Method and Description |
|---|---|
LogNode[] |
getChildren() |
int |
getIndex() |
LogNode |
getNextSibling() |
LogNode |
getParent() |
LogNode |
getPreviousSibling() |
String |
getRef() |
LogNode |
getSibling(int i) |
protected FileWriter |
getTargetFileWriter() |
void |
setParent(LogNode node) |
void |
setRef(String ref) |
Iterable<xyz.cofe.collection.iterators.TreeWalk<LogNode>> |
tree() |
void |
visit(xyz.cofe.collection.Func1<Boolean,Stack<LogNode>> visiterEnter,
xyz.cofe.collection.Func1<Object,Stack<LogNode>> visiterExit) |
void |
visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiter) |
void |
visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiterEnter,
xyz.cofe.common.Reciver<Stack<LogNode>> visiterExit) |
Iterable<LogNode> |
walk() |
void |
write(String text)
Записывает текст в файл/лог/...
|
protected final Lock lock
protected FileWriter resolvedFileWriter
protected int resolveCount
protected int maxResolveCount
public RefLogFileWriter()
public RefLogFileWriter(RefLogFileWriter src)
public String getRef()
public void setRef(String ref)
protected FileWriter getTargetFileWriter()
public void write(String text)
FileWriterwrite in interface FileWritertext - текстpublic LogNode getParent()
getParent in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void setParent(LogNode node)
setParent in interface xyz.cofe.collection.tree.TreeNodeSetParent<LogNode>public LogNode[] getChildren()
getChildren in interface xyz.cofe.collection.tree.TreeNode<LogNode>public int getIndex()
getIndex in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getSibling(int i)
getSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getNextSibling()
getNextSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getPreviousSibling()
getPreviousSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public Iterable<LogNode> walk()
walk in interface xyz.cofe.collection.tree.TreeNode<LogNode>public Iterable<xyz.cofe.collection.iterators.TreeWalk<LogNode>> tree()
tree in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiter)
visit in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void visit(xyz.cofe.collection.Func1<Boolean,Stack<LogNode>> visiterEnter, xyz.cofe.collection.Func1<Object,Stack<LogNode>> visiterExit)
visit in interface xyz.cofe.collection.tree.TreeNode<LogNode>Copyright © 2017. All rights reserved.