FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing/app/src/processing/app/exec/ProcessResult.java at master · hayscoding/processing · GitHub
hayscoding
processing
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
processing
/
app
/
src
/
processing
/
app
/
exec
/
ProcessResult.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (48 loc) · 1.29 KB
Breadcrumbs
processing
/
app
/
src
/
processing
/
app
/
exec
/
ProcessResult.java
Copy path
File metadata and controls
60 lines (48 loc) · 1.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package
processing
.
app
.
exec
;
import
java
.
util
.
Arrays
;
import
java
.
util
.
Iterator
;
public
class
ProcessResult
implements
Iterable
<
String
> {
private
final
String
cmd
;
private
final
long
time
;
private
final
String
output
;
private
final
String
error
;
private
final
int
result
;
public
ProcessResult
(
String
cmd
,
int
result
,
String
output
,
String
error
,
long
time
) {
this
.
cmd
=
cmd
;
this
.
output
=
output
;
this
.
error
=
error
;
this
.
result
=
result
;
this
.
time
=
time
;
}
public
Iterator
<
String
>
iterator
() {
return
Arrays
.
asList
(
output
.
split
(
"
\r
?
\n
"
)).
iterator
();
}
public
String
getCmd
() {
return
cmd
;
}
public
int
getResult
() {
return
result
;
}
public
boolean
succeeded
() {
return
result
==
0
;
}
public
String
getStderr
() {
return
error
;
}
public
String
getStdout
() {
return
output
;
}
public
long
getTime
() {
return
time
;
}
@
Override
public
String
toString
() {
final
StringBuilder
sb
=
new
StringBuilder
(
cmd
).
append
(
"
\n
"
);
sb
.
append
(
" status: "
).
append
(
result
).
append
(
"
\n
"
);
sb
.
append
(
" "
).
append
(
time
).
append
(
"ms"
).
append
(
"
\n
"
);
sb
.
append
(
" stdout:
\n
"
).
append
(
output
.
trim
()).
append
(
"
\n
"
);
sb
.
append
(
" stderr:
\n
"
).
append
(
error
.
trim
());
return
sb
.
toString
();
}
}
Back
|
FazBrowse Home
|
New Git URL