Examples of Encoding


Examples of com.linkedin.databus.core.Encoding

          throw new RequestProcessingException(msg,ex);
        }
      }

      String outputFormat = request.getParams().getProperty(OUTPUT_PARAM);
      Encoding enc = Encoding.BINARY;

      if ( null != outputFormat)
      {
        try
        {
View Full Code Here

Examples of com.linkedin.databus.core.Encoding

      ObjectMapper objMapper = new ObjectMapper();
      String checkpointString = request.getParams().getProperty(CHECKPOINT_PARAM, null);
      String checkpointStringMult = request.getParams().getProperty(CHECKPOINT_PARAM_MULT, null);
      int fetchSize = request.getRequiredIntParam(FETCH_SIZE_PARAM);
      String formatStr = request.getRequiredStringParam(OUTPUT_FORMAT_PARAM);
      Encoding enc = Encoding.valueOf(formatStr.toUpperCase());
      String sourcesListStr = request.getParams().getProperty(SOURCES_PARAM, null);
      String subsStr = request.getParams().getProperty(SUBS_PARAM, null);
      String partitionInfoStr = request.getParams().getProperty(PARTITION_INFO_STRING);
      String streamFromLatestSCNStr = request.getParams().getProperty(STREAM_FROM_LATEST_SCN);
      String clientMaxEventVersionStr = request.getParams().getProperty(DatabusHttpHeaders.MAX_EVENT_VERSION);
View Full Code Here

Examples of com.volantis.charset.Encoding

     *                                  the underlying platform.
     */
    public void setCharsetName(String charsetName)
            throws IllegalArgumentException {
        // Find the Encoding for the proposed character encoding.
        Encoding encoding = applicationContext.getEncodingManager().
                getEncoding(charsetName);
        if (encoding != null) {
            this.charsetEncoding = encoding;
        } else {
            throw new IllegalArgumentException("Charset " + charsetName +
View Full Code Here

Examples of com.volantis.mcs.policies.variants.metadata.Encoding

* an internationalised version of the name.
*/
public class EncodingLabelProvider extends LabelProvider {
    // Javadoc inherited
    public String getText(Object o) {
        Encoding encoding = (Encoding) o;

        String encodingName = encoding.getName().replaceAll(" ", "");
        return EditorMessages.getString(
                "Encoding." + StringUtils.toLowerIgnoreLocale(encodingName) +
                ".label");
    }
View Full Code Here

Examples of de.innovationgate.wga.model.Encoding

  private String determineDesignEncoding(String fallBackEncoding) {
    IFile syncInfo = _syncInfo;
    if (syncInfo != null) {
      try {
        WGADesignConfigurationModel model = new WGADesignConfigurationModel(syncInfo.getLocation().toFile());
        Encoding encoding = model.getDesignEncoding();
        if (encoding != null && !encoding.getKey().equals(WGADesignConfigurationModel.STRING_NOT_SET)) {
          return encoding.getKey();
        } else {
          Activator.getDefault().getLog().log(
              new Status(Status.WARNING, Activator.PLUGIN_ID, "Design encoding not set for design '" + syncInfo.getParent().getLocation().toString() + "'. Using platform encoding '"
                  + fallBackEncoding + "'."));
          return fallBackEncoding;
View Full Code Here

Examples of io.undertow.websockets.jsr.Encoding

        public void populate(final Object[] params, final Map<Class<?>, Object> value) throws DecodeException {
            final Map<String, String> data = (Map<String, String>) value.get(Map.class);
            for (int i = 0; i < positions.length; ++i) {
                String name = positions[i];
                if (name != null) {
                    Encoding encoding = encoders[i];
                    if (encoding == null) {
                        params[i] = data.get(name);
                    } else {
                        params[i] = encoding.decodeText(types[i], data.get(name));
                    }
                }
            }
        }
View Full Code Here

Examples of io.undertow.websockets.jsr.Encoding

        public void populate(final Object[] params, final Map<Class<?>, Object> value) throws DecodeException {
            final Map<String, String> data = (Map<String, String>) value.get(Map.class);
            for (int i = 0; i < postions.length; ++i) {
                String name = postions[i];
                if (name != null) {
                    Encoding encoding = encoders[i];
                    if (encoding == null) {
                        params[i] = data.get(name);
                    } else {
                        params[i] = encoding.decodeText(types[i], data.get(name));
                    }
                }
            }
        }
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.labelmode.Encoding

public class EncodingTest {

    @Test
    public void test() {
  Encoding command = new Encoding(EncodingType.ascii);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("ENCODING ASCII");

  assertCommand(output, command);
View Full Code Here

Examples of javax.sound.sampled.AudioFormat.Encoding

        naoAlterouMusicaAinda = true;
        PropriedadesMusica propriedadesMusica = new PropriedadesMusica();
        totalTempo = (Long) properties.get("duration");
        totalBytes = (Integer) properties.get("audio.length.bytes");
//        stringTempoTotalChange(microSegundosEmMinSeq(totalTempo));
        Encoding enc;

        String tipo = "";
        try {

            enc = AudioSystem.getAudioFileFormat((File) stream).getFormat().getEncoding();
            if (enc.toString().toLowerCase().indexOf("vorbis") != -1) {
                tipo = "ogg";
            }
            if (enc.toString().toLowerCase().indexOf("mpeg") != -1) {
                tipo = "mp3";
            }
            String info = properties.get("title") + " " + properties.get("author") + " " + properties.get("album");
            info = info.trim();
//            String duracao = microSegundosEmMinSeq((Long) properties.get("duration"));
View Full Code Here

Examples of jnr.ffi.annotations.Encoding

    public static FromNativeConverter<String, Pointer> getInstance(FromNativeContext fromNativeContext) {
        Charset charset = Charset.defaultCharset();

        if (fromNativeContext instanceof MethodResultContext) {
            // See if the interface class has a global @Encoding declaration
            Encoding e = getEncoding(Arrays.asList(((MethodResultContext) fromNativeContext).getMethod().getDeclaringClass().getAnnotations()));
            if (e != null) {
                charset = Charset.forName(e.value());
            }
        }

        // Allow each method to override the default
        Encoding e = getEncoding(fromNativeContext.getAnnotations());
        if (e != null) {
            charset = Charset.forName(e.value());
        }

        return getInstance(charset);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.