- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {OutputStreamWriter o =
OutputStream out;new OutputStreamWriter(out)
OutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
HttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
- Smart code suggestions by Codota
}
/** * Create a {@link CategoricalTimeLocationValueTripleType} from * {@link TimeLocationValueTriple} * * @param timeLocationValueTriple * The {@link TimeLocationValueTriple} to encode * @return The encoded {@link TimeLocationValueTriple} * @throws OwsExceptionReport * If an error occurs */ private TimeValuePairType createCategoricalTimeLocationValueTripleType( TimeLocationValueTriple timeLocationValueTriple) throws OwsExceptionReport { CategoricalTimeLocationValueTripleType ctlvtt = CategoricalTimeLocationValueTripleType.Factory.newInstance(); ctlvtt.addNewTime().setStringValue(getTimeString(timeLocationValueTriple.getTime())); ctlvtt.addNewLocation().addNewPoint().set(encodeGML(timeLocationValueTriple.getLocation())); if (timeLocationValueTriple.getValue() instanceof CategoryValue) { CategoryValue categoryValue = (CategoryValue) timeLocationValueTriple.getValue(); if (categoryValue.isSetValue()) { ctlvtt.addNewValue().addNewCategory().set(encodeSweCommon(convertToSweCategory(categoryValue))); } else { ctlvtt.addNewValue().setNil(); ctlvtt.addNewMetadata().addNewTVPMetadata().addNewNilReason().setNilReason("missing"); } } return ctlvtt; }
/** * Create a {@link CategoricalTimeLocationValueTripleType} from * {@link TimeLocationValueTriple} * * @param timeLocationValueTriple * The {@link TimeLocationValueTriple} to encode * @return The encoded {@link TimeLocationValueTriple} * @throws EncodingException * If an error occurs */ private TimeValuePairType createCategoricalTimeLocationValueTripleType( TimeLocationValueTriple timeLocationValueTriple) throws EncodingException { CategoricalTimeLocationValueTripleType ctlvtt = CategoricalTimeLocationValueTripleType.Factory.newInstance(); ctlvtt.addNewTime().setStringValue(getTimeString(timeLocationValueTriple.getTime())); ctlvtt.addNewLocation().addNewPoint().set(encodeGML(timeLocationValueTriple.getLocation())); if (timeLocationValueTriple.getValue() instanceof CategoryValue) { CategoryValue categoryValue = (CategoryValue) timeLocationValueTriple.getValue(); if (categoryValue.isSetValue()) { ctlvtt.addNewValue().addNewCategory().set(encodeSweCommon(convertToSweCategory(categoryValue))); } else { ctlvtt.addNewValue().setNil(); ctlvtt.addNewMetadata().addNewTVPMetadata().addNewNilReason().setNilReason(MISSING); } } return ctlvtt; }