@@ -38,11 +38,11 @@ public static Workflow readWorkflow(byte[] input, WorkflowFormat format) throws
38
38
}
39
39
40
40
public static Workflow readWorkflow (Path path ) throws IOException {
41
- return readWorkflow (defaultReader (), path , WorkflowFormat .fromPath (path ));
41
+ return readWorkflow (path , WorkflowFormat .fromPath (path ), defaultReader ( ));
42
42
}
43
43
44
44
public static Workflow readWorkflow (Path path , WorkflowFormat format ) throws IOException {
45
- return readWorkflow (defaultReader (), path , format );
45
+ return readWorkflow (path , format , defaultReader () );
46
46
}
47
47
48
48
public static Workflow readWorkflowFromString (String input , WorkflowFormat format )
@@ -51,35 +51,35 @@ public static Workflow readWorkflowFromString(String input, WorkflowFormat forma
51
51
}
52
52
53
53
public static Workflow readWorkflowFromClasspath (String classpath ) throws IOException {
54
- return readWorkflowFromClasspath (defaultReader (), classpath );
54
+ return readWorkflowFromClasspath (classpath , defaultReader ());
55
55
}
56
56
57
57
public static Workflow readWorkflowFromClasspath (
58
58
String classpath , ClassLoader cl , WorkflowFormat format ) throws IOException {
59
- return readWorkflowFromClasspath (defaultReader (), classpath );
59
+ return readWorkflowFromClasspath (classpath , defaultReader ());
60
60
}
61
61
62
- public static Workflow readWorkflow (WorkflowReaderOperations reader , Path path )
62
+ public static Workflow readWorkflow (Path path , WorkflowReaderOperations reader )
63
63
throws IOException {
64
- return readWorkflow (reader , path , WorkflowFormat .fromPath (path ));
64
+ return readWorkflow (path , WorkflowFormat .fromPath (path ), reader );
65
65
}
66
66
67
67
public static Workflow readWorkflow (
68
- WorkflowReaderOperations reader , Path path , WorkflowFormat format ) throws IOException {
68
+ Path path , WorkflowFormat format , WorkflowReaderOperations reader ) throws IOException {
69
69
return reader .read (Files .readAllBytes (path ), format );
70
70
}
71
71
72
72
public static Workflow readWorkflowFromClasspath (
73
- WorkflowReaderOperations reader , String classpath ) throws IOException {
73
+ String classpath , WorkflowReaderOperations reader ) throws IOException {
74
74
return readWorkflowFromClasspath (
75
- reader ,
76
75
classpath ,
77
76
Thread .currentThread ().getContextClassLoader (),
78
- WorkflowFormat .fromFileName (classpath ));
77
+ WorkflowFormat .fromFileName (classpath ),
78
+ reader );
79
79
}
80
80
81
81
public static Workflow readWorkflowFromClasspath (
82
- WorkflowReaderOperations reader , String classpath , ClassLoader cl , WorkflowFormat format )
82
+ String classpath , ClassLoader cl , WorkflowFormat format , WorkflowReaderOperations reader )
83
83
throws IOException {
84
84
try (InputStream in = cl .getResourceAsStream (classpath )) {
85
85
if (in == null ) {
0 commit comments