You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractFileItemWriter.java
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2006-2021 the original author or authors.
2
+
* Copyright 2006-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -48,11 +48,11 @@
48
48
* This class provides common features like restart, force sync, append etc.
49
49
* The location of the output file is defined by a {@link Resource} which must
50
50
* represent a writable file.<br>
51
-
*
51
+
*
52
52
* Uses buffered writer to improve performance.<br>
53
-
*
53
+
*
54
54
* The implementation is <b>not</b> thread-safe.
55
-
*
55
+
*
56
56
* @author Waseem Malik
57
57
* @author Tomas Slanina
58
58
* @author Robert Kasanicky
@@ -109,7 +109,7 @@ public abstract class AbstractFileItemWriter<T> extends AbstractItemStreamItemWr
109
109
* be lost if the OS crashes in between a write and a cache flush. Setting
110
110
* to true may result in slower performance for usage patterns involving many
111
111
* frequent writes.
112
-
*
112
+
*
113
113
* @param forceSync the flag value to set
114
114
*/
115
115
publicvoidsetForceSync(booleanforceSync) {
@@ -127,7 +127,7 @@ public void setLineSeparator(String lineSeparator) {
127
127
128
128
/**
129
129
* Setter for resource. Represents a file that can be written.
130
-
*
130
+
*
131
131
* @param resource the resource to be written to
132
132
*/
133
133
@Override
@@ -151,7 +151,7 @@ public void setEncoding(String newEncoding) {
151
151
* except on restart. If set to false and {@link #setAppendAllowed(boolean)
152
152
* appendAllowed} is also false then there will be an exception when the
153
153
* stream is opened to prevent existing data being potentially corrupted.
154
-
*
154
+
*
155
155
* @param shouldDeleteIfExists the flag value to set
0 commit comments