---
title: "OptimizedMemoryStream.SeekOrigin"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/optimizedmemorystream.seekorigin/"
product: "Aspose.PDF for Java API Reference"
description: "Specifies the position in a stream to use for seeking."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < OptimizedMemoryStream.SeekOrigin > com.aspose.pdf.OptimizedMemoryStream.SeekOrigin, java.lang.Enum < OptimizedMemoryStream.SeekOrigin >, com.aspose.pdf.OptimizedMemoryStream.SeekOrigin

**All Implemented Interfaces:**
Serializable, Comparable < OptimizedMemoryStream.SeekOrigin >

```
public static enum OptimizedMemoryStream.SeekOrigin extends Enum < OptimizedMemoryStream.SeekOrigin >
```

Specifies the position in a stream to use for seeking.

## Fields

| Field | Description |
| --- | --- |
| [Begin](#Begin) | Specifies the beginning of a stream. |
| [Current](#Current) | Specifies the current position within a stream. |
| [End](#End) | Specifies the end of a stream. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Begin {#Begin}
```
public static final OptimizedMemoryStream.SeekOrigin Begin
```

Specifies the beginning of a stream.

### Current {#Current}
```
public static final OptimizedMemoryStream.SeekOrigin Current
```

Specifies the current position within a stream.

### End {#End}
```
public static final OptimizedMemoryStream.SeekOrigin End
```

Specifies the end of a stream.

### getByValue {#getByValue-int-}
```
public static OptimizedMemoryStream.SeekOrigin getByValue(int value)
```



### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static OptimizedMemoryStream.SeekOrigin [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
