FreeWRL / FreeX3D 4.3.0
ConstSFString.java
1//AUTOMATICALLY GENERATED BY genfields.pl.
2//DO NOT EDIT!!!!
3
4package vrml.field;
5import vrml.*;
6import java.io.BufferedReader;
7import java.io.PrintWriter;
8import java.io.IOException;
9
10public class ConstSFString extends ConstField {
11 String s;
12
13 public ConstSFString() { }
14
15 public ConstSFString(String s) {
16 this.s = s;
17 }
18
19 public String getValue() {
20 __updateRead();
21 return s;
22 }
23
24 public String toString() {
25 __updateRead();
26 return vrml.FWHelper.quote(s);
27 }
28
29 public void __fromPerl(BufferedReader in) throws IOException {
30
31 //System.out.println ("fromPerl, String");
32 s = in.readLine();
33 }
34
35 public void __toPerl(PrintWriter out) throws IOException {
36 out.print(s);
37 //out.println();
38 }
39 //public void setOffset(String offs) { this.offset = offs; } //JAS2
40 //public String getOffset() { return this.offset; } //JAS2
41}