File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ final GPX gpx = GPX.builder()
4747** Writing GPX object to a file**
4848
4949``` java
50- GPX . write(gpx, " track.gpx" );
50+ GPX . write(gpx, Path . of( " track.gpx" ) );
5151```
5252
5353* GPX output*
@@ -75,7 +75,7 @@ GPX.write(gpx, "track.gpx");
7575This example writes a given ` GPX ` object to a file, reads it again and prints the ` WayPoint ` s of all tracks and all track-segments to the console.
7676
7777``` java
78- GPX . write(gpx, " track.gpx" );
78+ GPX . write(gpx, Path . of( " track.gpx" ) );
7979GPX . read(" gpx.xml" ). tracks()
8080 .flatMap(Track :: segments)
8181 .flatMap(TrackSegment :: points)
@@ -145,7 +145,7 @@ final GPX gpx11 = gpx10.toBuilder()
145145 .build();
146146
147147// Writing GPX to file.
148- GPX . write(gpx11, " track-v11.gpx" );
148+ GPX . write(gpx11, Path . of( " track-v11.gpx" ) );
149149```
150150
151151### ISO 6709 location strings
You can’t perform that action at this time.
0 commit comments