Skip to content

Commit 4fa17ea

Browse files
committed
Update SegmentBuilder.java
Add att() method for StreamBuilder API
1 parent c603758 commit 4fa17ea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/org/beanio/builder/SegmentBuilder.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ protected SegmentBuilder me() {
4141
return this;
4242
}
4343

44+
/**
45+
* Sets the position of the field.
46+
* @param at the position
47+
* @return this
48+
*/
49+
public SegmentBuilder at(int at) {
50+
config.setPosition(at);
51+
return this;
52+
}
53+
4454
/**
4555
* Indicates the number of occurrences of this segment is governed by another field.
4656
* @param ref the name of the field that governs the occurrences of this segment

0 commit comments

Comments
 (0)