| 151 | } |
| 152 | |
| 153 | public SequenceWriter format(String source) { |
| 154 | SerializationParameters params = SerializationParameters.copy(this.serializationParameters); |
| 155 | params.setMethod(source); |
| 156 | if (this.dataFrameWriter != null && !source.equals("xml-json-hybrid") && !source.equals("tyson")) { |
| 157 | return createNewInstance( |
| 158 | this.dataFrameWriter.format(source), |
| 159 | null, |
| 160 | params |
| 161 | ); |
| 162 | } else { |
| 163 | SaveMode newMode = (this.dataFrameWriter == null) ? this.mode : this.dataFrameWriter.curmode(); |
| 164 | return createNewInstance(null, newMode, params); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | public SequenceWriter option(String key, String value) { |
| 169 | SerializationParameters newParams = SerializationParameters.copy(this.serializationParameters); |