01: /*
02: * $Id: AnyBinaryConstructor.java,v 1.3 2002/09/16 08:05:02 jkl Exp $
03: *
04: * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
05: *
06: * Use is subject to license terms, as defined in
07: * Anvil Sofware License, Version 1.1. See LICENSE
08: * file, or http://njet.org/license-1.1.txt
09: */
10: package anvil.core;
11:
12: /**
13: * class AnyBinaryConstructor
14: *
15: * @author: Jani Lehtimäki
16: */
17: public class AnyBinaryConstructor extends AnyConstructor {
18:
19: public AnyBinaryConstructor() {
20: super (null);
21: }
22:
23: public Any construct(Object object) {
24: return new AnyBinary((byte[]) object);
25: }
26: }
|