Click here to Skip to main content
15,799,017 members
Home / Discussions / Java
   

Java

 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding26-Sep-23 1:53
JohnCodding26-Sep-23 1:53 
GeneralRe: Sending file though socket as byte[] Pin
jschell3-Oct-23 5:42
jschell3-Oct-23 5:42 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding13-Oct-23 0:35
JohnCodding13-Oct-23 0:35 
GeneralRe: Sending file though socket as byte[] Pin
jschell13-Oct-23 8:19
jschell13-Oct-23 8:19 
Question[Solved] Getting and setting a File's all attributes Pin
Valentinor24-Sep-23 23:47
Valentinor24-Sep-23 23:47 
AnswerRe: Getting and setting a File's all attributes Pin
Victor Nijegorodov25-Sep-23 0:04
Victor Nijegorodov25-Sep-23 0:04 
GeneralRe: Getting and setting a File's all attributes Pin
Valentinor25-Sep-23 0:17
Valentinor25-Sep-23 0:17 
Answer[Solution] Re: Getting and setting a File's all attributes Pin
Valentinor25-Sep-23 7:26
Valentinor25-Sep-23 7:26 
I found a solution for the information when you open the Properties of a file, from the General tab, as for Details tab, that info it is copied with the file.

Example for General tab:
Java
DosFileAttributes dos = Files.readAttributes(original.toPath(), DosFileAttributes.class);
DosFileAttributeView dosView = Files.getFileAttributeView(copy.toPath(), DosFileAttributeView.class);
dosView.setArchive(dos.isArchive());
dosView.setHidden(dos.isHidden());
dosView.setReadOnly(dos.isReadOnly());
dosView.setSystem(dos.isSystem());
dosView.setTimes(dos.lastModifiedTime(), dos.lastAccessTime(), dos.creationTime());


modified 26-Sep-23 3:05am.

QuestionGetting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852744-Sep-23 6:46
Member 160852744-Sep-23 6:46 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard Deeming4-Sep-23 22:21
mveRichard Deeming4-Sep-23 22:21 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 0:55
Member 160852745-Sep-23 0:55 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 0:58
Member 160852745-Sep-23 0:58 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 1:09
Member 160852745-Sep-23 1:09 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard MacCutchan5-Sep-23 1:21
mveRichard MacCutchan5-Sep-23 1:21 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
jschell5-Sep-23 3:34
jschell5-Sep-23 3:34 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 6:11
Member 160852745-Sep-23 6:11 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard Deeming5-Sep-23 22:23
mveRichard Deeming5-Sep-23 22:23 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard MacCutchan5-Sep-23 23:43
mveRichard MacCutchan5-Sep-23 23:43 
QuestionWhat is the difference between a static and an instance variable in Java? Pin
Ashley OP8-Aug-23 0:31
Ashley OP8-Aug-23 0:31 
AnswerRe: What is the difference between a static and an instance variable in Java? Pin
Richard MacCutchan8-Aug-23 0:33
mveRichard MacCutchan8-Aug-23 0:33 
QuestionJavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 7:37
JohnCodding21-Jul-23 7:37 
AnswerRe: JavaFX multithreading operation changing GUI elements Pin
JudyL_MD21-Jul-23 10:01
JudyL_MD21-Jul-23 10:01 
GeneralRe: JavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 10:44
JohnCodding21-Jul-23 10:44 
GeneralRe: JavaFX multithreading operation changing GUI elements Pin
JudyL_MD21-Jul-23 11:46
JudyL_MD21-Jul-23 11:46 
AnswerRe: JavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 10:49
JohnCodding21-Jul-23 10:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.