You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PersistenceSupport.java 1013B

12345678910111213141516171819202122232425262728293031
  1. /* *******************************************************************
  2. * Copyright (c) 2009 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * ******************************************************************/
  10. package org.aspectj.weaver;
  11. import java.io.IOException;
  12. import java.io.ObjectOutputStream;
  13. import java.io.Serializable;
  14. /**
  15. * @author Andy Clement
  16. */
  17. public class PersistenceSupport {
  18. public static void write(CompressingDataOutputStream stream, ISourceContext sourceContext) throws IOException {
  19. throw new IllegalStateException();
  20. }
  21. public static void write(CompressingDataOutputStream stream, Serializable serializableObject) throws IOException {
  22. ObjectOutputStream oos = new ObjectOutputStream(stream);
  23. oos.writeObject(serializableObject);
  24. oos.flush();
  25. }
  26. }