public class FcmdEdit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionConvertUTF8unix |
(package private) GralUserAction |
actionOpenEdit
Action for Key F3 for view command.
|
private static java.nio.charset.Charset |
ascii7 |
private byte[] |
buffer
The gotten bytes from bytebuffer.
|
private java.nio.ByteBuffer |
byteBuffer
A buffer to get bytes from the file using the java.nio.Channel mechanism.
|
private char |
format
The current choiced view format.
|
private StringFormatter |
formatterHex
Instance to prepare the text especially for hex view.
|
protected Fcmd |
main |
private int |
nrofBytes
Number of read bytes.
|
private static java.nio.charset.Charset |
utf8 |
private GralTextBox |
widgContent
The widget to show content.
|
private GralWindow_ifc |
windView
The window of this functionallity.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
buildWindow()
Builds the content of the confirm-delete window.
|
(package private) void |
openEdit(FileRemote src)
Opens the view window and fills its content.
|
(package private) void |
presentContent() |
(package private) void |
presentContentHex() |
(package private) void |
presentContentText() |
protected final Fcmd main
private GralWindow_ifc windView
private GralTextBox widgContent
private final java.nio.ByteBuffer byteBuffer
private int nrofBytes
private byte[] buffer
private final char format
private static java.nio.charset.Charset ascii7
private static java.nio.charset.Charset utf8
private final StringFormatter formatterHex
GralUserAction actionOpenEdit
GralUserAction actionConvertUTF8unix
public FcmdEdit(Fcmd main)
void buildWindow()
void openEdit(FileRemote src)
src
- The path which is selected as source. It may be a directory or a file.void presentContent() throws java.io.IOException
java.io.IOException
void presentContentHex() throws java.io.IOException
java.io.IOException
void presentContentText() throws java.io.IOException
java.io.IOException