Examples of StreamException


Examples of com.bj58.spat.gaea.serializer.component.exception.StreamException

            }
            return obj;
        }
        int len = inStream.ReadInt32();
        if (len > inStream.MAX_DATA_LEN) {
            throw new StreamException("Data length overflow.");
        }
        if (len == 0) {
            inStream.SetRef(hashcode, StrHelper.EmptyString);
            return StrHelper.EmptyString;
        }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

  public HierarchicalStreamReader createReader(InputStream in) {
    try {
      return createReader(new InputStreamReader(in, "UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new StreamException(e);
    }
  }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

  public HierarchicalStreamWriter createWriter(OutputStream out) {
    try {
      return createWriter(new OutputStreamWriter(out, "UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new StreamException(e);
    }
  }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

                    secondPosition = i;
                }
            }
            if (firstPosition == -1 || secondPosition == -1) {
                // field not defined!!!
                throw new StreamException("You have not given XStream a list of all fields to be serialized.");
            }
            return firstPosition - secondPosition;
        }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

        try {
            writer.write(buffer, 0, pointer);
            pointer = 0;
            writer.flush();
        } catch (final IOException e) {
            throw new StreamException(e);
        }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

        try {
            writer.write(buffer, 0, pointer);
            pointer = 0;
            writer.close();
        } catch (final IOException e) {
            throw new StreamException(e);
        }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

    private void raw(final char[] c) {
        try {
            writer.write(c);
            writer.flush();
        } catch (final IOException e) {
            throw new StreamException(e);
        }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

    private void raw(final char c) {
        try {
            writer.write(c);
            writer.flush();
        } catch (final IOException e) {
            throw new StreamException(e);
        }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

    @Override
    public HierarchicalStreamReader createReader(final Reader in) {
        try {
            return new XppReader(in, createParser(), getNameCoder());
        } catch (final XmlPullParserException e) {
            throw new StreamException("Cannot create XmlPullParser");
        }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.StreamException

    @Override
    public HierarchicalStreamReader createReader(final InputStream in) {
        try {
            return createReader(new XmlHeaderAwareReader(in));
        } catch (final UnsupportedEncodingException e) {
            throw new StreamException(e);
        } catch (final IOException e) {
            throw new StreamException(e);
        }
    }
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.